Answers for "unity check if prefab"

C#
1

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
Posted by: Guest on May-20-2021

Code answers related to "unity check if prefab"

C# Answers by Framework

Browse Popular Code Answers by Language