mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +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
7c01654321
commit
3c6f8f96e4
@ -489,7 +489,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