Beispiel #1
0
        private static void InstantiateFromActivePrefabIfPossible()
        {
            Prefab activePrefab = PrefabQueries.GetActivePrefab();

            if (activePrefab != null)
            {
                InstantiateFromPrefab(activePrefab);
            }
        }
Beispiel #2
0
        protected override void RenderContent()
        {
            Prefab activePrefab = PrefabQueries.GetActivePrefab();

            if (activePrefab != null)
            {
                RenderActivePrefabPreviewButtonAndNextPrevControls(activePrefab);
                activePrefab.View.Render();
            }
            else
            {
                EditorGUILayoutEx.InformativeLabel("There is no active prefab currently available.");
            }
        }
Beispiel #3
0
        protected override void RenderContent()
        {
            Prefab activePrefab = PrefabQueries.GetActivePrefab();

            if (activePrefab != null)
            {
                RenderActivePrefabPreviewButtonAndNextPrevControls(activePrefab);
                activePrefab.View.Render();
            }
            else
            {
                EditorGUILayout.HelpBox("There is no active prefab currently available.", UnityEditor.MessageType.None);
            }
        }