Exemple #1
0
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button(Localization.Tr("Run Startup Code")))
            {
                UserStartupCode.RunStartupCode(Target);
            }

            EditorGUILayout.Space(10);
            DrawPropertiesExcluding(serializedObject, k_PropertiesToHide);
            serializedObject.ApplyModifiedProperties();
        }
        public override void OnInspectorGUI()
        {
            TutorialProjectSettings.DrawDefaultAssetRestoreWarning();

            if (GUILayout.Button(Localization.Tr("Run Startup Code")))
            {
                UserStartupCode.RunStartupCode(Target);
            }

            EditorGUILayout.Space(10);

            if (SerializedTypeDrawer.UseDefaultEditors)
            {
                base.OnInspectorGUI();
            }
            else
            {
                serializedObject.Update();
                DrawPropertiesExcluding(serializedObject, k_PropertiesToHide);
                serializedObject.ApplyModifiedProperties();
            }
        }
 static void OpenTutorialWindow()
 {
     UserStartupCode.ShowTutorialWindow();
 }