Hi, i believe you have a bug in SkeletonGraphicInspector, for button "Detect Settings"
if (GUILayout.Button("Detect Settings", EditorStyles.miniButton, GUILayout.Width(100f))) {
Undo.RecordObjects(targets, "Detect Settings");
foreach (Object targets in targets) {
SkeletonGraphic skeletonGraphic = target as SkeletonGraphic;
if (skeletonGraphic == null) continue;
DetectTintBlack(skeletonGraphic);
DetectCanvasGroupCompatible(skeletonGraphic);
DetectPMAVertexColors(skeletonGraphic);
}
}
The foreach Object iteration object is called targets, but should be called target, inside foreach target as SkeletonGraphic accesses the base target reference and not the each Object target.
Second thing is question of automation, i have a lot of prefabs with graphic skeleton graphic renderers.
I created a editor windows which knows if i have selected a prefab content with skeleton component. With a click of a single button in unity editor window i want to alter couple of settings.
Doing this by hand for many prefabs is error prone.
I want to change PMA vertex colors true/false and canvas group compatible true/false under advanced settings, how can i do this the correct way ?
Thank you.