Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity change play mode color 
Csharp :: resize image c# 
Csharp :: unity deactive code from code 
Csharp :: c# unzip files 
Csharp :: c# remove non-alphanumeric characters from string 
Csharp :: c# loop through array 
Csharp :: 2d unity point at 
Csharp :: get path c# 
Csharp :: dotnet dev-certs https --clean 
Csharp :: get random file in directory c# 
Csharp :: unity string format time 
Csharp :: c# socket bind to localhost 
Csharp :: how to reference text mesh pro unity 
Csharp :: c# get next item in list 
Csharp :: difference between namespace and assembly in c# 
Csharp :: set textbox colour to transparent c# 
Csharp :: Add float value to ui text in unity 
Csharp :: check if string is a guid c# 
Csharp :: Unity Scene Load by Name 
Csharp :: get string name of dropdown in unity 
Csharp :: unity particle system playing at the wrong location 
Csharp :: unserialized field unity 
Csharp :: audiomixer get float 
Csharp :: getset c# 
Csharp :: generate a random number in c# 
Csharp :: unity2d click on gameobject 
Csharp :: c# byte array to string 
Csharp :: add admin priviledge to c# program 
Csharp :: get desktop path c# 
Csharp :: message uwp c# 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =