UnityEngine.EventSystems.EventSystem.OnEnable C# (CSharp) Method

OnEnable() protected method

protected OnEnable ( ) : void
return void
        protected override void OnEnable()
        {
            base.OnEnable();
            if (current == null)
            {
                current = this;
            }
            else
            {
                Debug.LogWarning("Multiple EventSystems in scene... this is not supported");
            }
        }