how to reference this gameobject unity
// use the keyword "this"
this.SetActive(true);
// the line above will set the GameObject this script is attached to active
Are there any code examples left?
New code examples in category C#
// use the keyword "this"
this.SetActive(true);
// the line above will set the GameObject this script is attached to active