Gameobject.setactive Unity Code Example


Example 1: unity c# set gameobject active


gameObject.SetActive(true)

Example 2: unity enable gameobject


GameObject.Find("PlayMenu 3").SetActive(false);
// you could also store a GameObject as variable

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy