C# script to enable and disable gameobject.
using System.Collections; using System.Collections.Generic; using UnityEngine; // ? 2017 TheFlyingKeyboard and released under MIT License // theflyingkeyboard.net public class EndableDisableObject : MonoBehaviour { public void EnableDisable(GameObject objectToChange) { objectToChange.SetActive(!objectToChange.activeInHierarchy); } }
Unity Enable Disable Object
love your quick easy tutorials and vids keep it up its hard to find such useful lil tutorials for stuff like this
Thanks for good words, I will definitely continue to do it in the future 🙂