mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[unity] Handle missing inspector method for older versions of Unity.
This commit is contained in:
parent
3b4286b8ef
commit
588cd7c2c4
@ -61,7 +61,11 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
EditorGUILayout.Space();
|
||||
if (!sameData) {
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
EditorGUILayout.DelayedTextField(animationName);
|
||||
#else
|
||||
animationName.stringValue = EditorGUILayout.TextField(animationName.displayName, animationName.stringValue);
|
||||
#endif
|
||||
} else {
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(animationName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user