private void DisplaySceneForkflowButtons(float width) { using (VerticalScope vertical = new VerticalScope()) { GUILayout.Label("Scenes Context", ExtGUIStyles.MiniTextCentered, GUILayout.Height(HEIGHT_TEXT)); using (HorizontalScope horizontal = new HorizontalScope()) { EditorGUI.BeginChangeCheck(); _refGameAsset = EditorGUILayout.ObjectField(_refGameAsset, typeof(ContextListerAsset), false, GUILayout.Width(50), GUILayout.Height(HEIGHT_BUTTON)) as ContextListerAsset; if (EditorGUI.EndChangeCheck()) { ExtSaveAssetGUID.ResetKey(KEY_USED_FOR_CONTEXT_ASSET); ExtSaveAssetGUID.SaveAssetReference(_refGameAsset, KEY_USED_FOR_CONTEXT_ASSET, ""); } #if UNITY_2018_3_OR_NEWER if (IsRightClickContext()) { CreateGenericMenu(); } #endif if (_refGameAsset != null) { DisplayContextButtonsName(); } } } }
public void Init() { _refGameAsset = ExtSaveAssetGUID.GetAsset <ContextListerAsset>(KEY_USED_FOR_CONTEXT_ASSET, out string infos); }