mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Menu section added for old git 3.7 branch menu, for easier consistent git merges later. Timeline support in Unity 2019, see #1326.
This commit is contained in:
parent
b198c9b48d
commit
da97eeb62f
@ -430,7 +430,21 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
}
|
||||
|
||||
#if NEW_TIMELINE_AS_PACKAGE
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.LabelField("Timeline Support", EditorStyles.boldLabel);
|
||||
using (new GUILayout.HorizontalScope()) {
|
||||
EditorGUILayout.PrefixLabel("Timeline Package Support");
|
||||
|
||||
var requestState = SpineEditorUtilities.SpinePackageDependencyUtility.HandlePendingAsyncTimelineRequest();
|
||||
using (new EditorGUI.DisabledGroupScope(requestState != SpineEditorUtilities.SpinePackageDependencyUtility.RequestState.NoRequestIssued)) {
|
||||
if (GUILayout.Button("Enable", GUILayout.Width(64)))
|
||||
SpineEditorUtilities.SpinePackageDependencyUtility.EnableTimelineSupport();
|
||||
if (GUILayout.Button("Disable", GUILayout.Width(64)))
|
||||
SpineEditorUtilities.SpinePackageDependencyUtility.DisableTimelineSupport();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.LabelField("3rd Party Settings", EditorStyles.boldLabel);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user