|
@@ -61,6 +61,7 @@ namespace Spine.Unity.Editor {
|
|
|
public static Texture2D image;
|
|
|
public static Texture2D genericAttachment;
|
|
|
public static Texture2D boundingBox;
|
|
|
+ public static Texture2D point;
|
|
|
public static Texture2D mesh;
|
|
|
public static Texture2D weights;
|
|
|
public static Texture2D path;
|
|
@@ -102,6 +103,7 @@ namespace Spine.Unity.Editor {
|
|
|
genericAttachment = LoadIcon("icon-attachment.png");
|
|
|
image = LoadIcon("icon-image.png");
|
|
|
boundingBox = LoadIcon("icon-boundingBox.png");
|
|
|
+ point = LoadIcon("icon-point.png");
|
|
|
mesh = LoadIcon("icon-mesh.png");
|
|
|
weights = LoadIcon("icon-weights.png");
|
|
|
path = LoadIcon("icon-path.png");
|
|
@@ -140,6 +142,8 @@ namespace Spine.Unity.Editor {
|
|
|
return ((MeshAttachment)attachment).IsWeighted() ? Icons.weights : Icons.mesh;
|
|
|
else if (attachment is BoundingBoxAttachment)
|
|
|
return Icons.boundingBox;
|
|
|
+ else if (attachment is PointAttachment)
|
|
|
+ return Icons.point;
|
|
|
else if (attachment is PathAttachment)
|
|
|
return Icons.path;
|
|
|
else if (attachment is ClippingAttachment)
|
|
@@ -284,7 +288,6 @@ namespace Spine.Unity.Editor {
|
|
|
defaultShader = shader != null ? shader.name : DEFAULT_DEFAULT_SHADER;
|
|
|
if (EditorGUI.EndChangeCheck())
|
|
|
EditorPrefs.SetString(DEFAULT_SHADER_KEY, defaultShader);
|
|
|
- EditorGUILayout.Space();
|
|
|
|
|
|
EditorGUI.BeginChangeCheck();
|
|
|
setTextureImporterSettings = EditorGUILayout.Toggle(new GUIContent("Apply Atlas Texture Settings", "Apply the recommended settings for Texture Importers."), showHierarchyIcons);
|
|
@@ -292,6 +295,8 @@ namespace Spine.Unity.Editor {
|
|
|
EditorPrefs.SetBool(SET_TEXTUREIMPORTER_SETTINGS_KEY, showHierarchyIcons);
|
|
|
}
|
|
|
|
|
|
+ EditorGUILayout.Space();
|
|
|
+
|
|
|
EditorGUILayout.LabelField("Editor Instantiation", EditorStyles.boldLabel);
|
|
|
EditorGUI.BeginChangeCheck();
|
|
|
defaultZSpacing = EditorGUILayout.Slider("Default Slot Z-Spacing", defaultZSpacing, -0.1f, 0f);
|