mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 08:16:41 +08:00
[unity] Fix compatibility with Unity 5.1.
This commit is contained in:
parent
3af5290e23
commit
13f433d13d
@ -8,7 +8,7 @@ public class SpineboyPole : MonoBehaviour {
|
||||
public SkeletonAnimation skeletonAnimation;
|
||||
public SkeletonRenderSeparator separator;
|
||||
|
||||
[Space]
|
||||
[Space(18)]
|
||||
[SpineAnimation]
|
||||
public string run;
|
||||
[SpineAnimation]
|
||||
|
||||
@ -260,7 +260,11 @@ namespace Spine.Unity.Editor {
|
||||
EditorPrefs.SetFloat(DEFAULT_SCALE_KEY, defaultScale);
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
defaultShader = EditorGUILayout.DelayedTextField(new GUIContent("Default shader", "Default shader for materials auto-generated on import."), defaultShader);
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
defaultShader = EditorGUILayout.DelayedTextField(new GUIContent("Default shader", "Default shader for materials auto-generated on import."), defaultShader);
|
||||
#else
|
||||
defaultShader = EditorGUILayout.TextField(new GUIContent("Default shader", "Default shader for materials auto-generated on import."), defaultShader);
|
||||
#endif
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
EditorPrefs.SetString(DEFAULT_SHADER_KEY, defaultShader);
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ namespace Spine.Unity.Modules {
|
||||
[Tooltip("Warning! You will have to re-enable and tune mix values manually if attempting to remove the ragdoll system.")]
|
||||
public bool disableIK = true;
|
||||
public bool disableOtherConstraints = false;
|
||||
[Space]
|
||||
[Space(18)]
|
||||
[Tooltip("Set RootRigidbody IsKinematic to true when Apply is called.")]
|
||||
public bool pinStartBone;
|
||||
[Tooltip("Enable Collision between adjacent ragdoll elements (IE: Neck and Head)")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user