Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity dontdestroyonload

private void Awake(){
	if(instance == null){
		instance = this;
    	DontDestroyOnLoad(instance);
	}
	else{
		Destroy(gameObject)
	}
}
 
PREVIOUS NEXT
Tagged: #unity #dontdestroyonload
ADD COMMENT
Topic
Name
2+9 =