Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity script detect if in prefab edition mode

using UnityEditor;
using UnityEditor.Experimental.SceneManagement;

if (PrefabStageUtility.GetCurrentPrefabStage() == null) {}
// If null it mean you are not in prefab editing mode
 
PREVIOUS NEXT
Tagged: #unity #script #detect #prefab #edition #mode
ADD COMMENT
Topic
Name
6+2 =