Lucy Estela
Get in touch
HomeDeveloperAuthorErko Athletics
Get in touch
← All dev blog posts

Toggle GameObject Visibility - Unity

23 October 2020
  • Unity
if(gameObject.activeSelf){
    gameObject.SetActive(false);
}else{
    gameObject.SetActive(true);
}
← All dev blog posts
All rights reserved © 2026