private static void InstantiateFromActivePrefabIfPossible() { Prefab activePrefab = PrefabQueries.GetActivePrefab(); if (activePrefab != null) { InstantiateFromPrefab(activePrefab); } }
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."); } }
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); } }