FairyGUI.UIPainter.OnEnable C# (CSharp) Method

OnEnable() public method

public OnEnable ( ) : void
return void
        void OnEnable()
        {
            if (Application.isPlaying)
            {
                if (this.container == null)
                {
                    CreateContainer();

                    if (!string.IsNullOrEmpty(packagePath) && UIPackage.GetByName(packageName) == null)
                        UIPackage.AddPackage(packagePath);
                }
                else
                    this.container._disabled = false;
            }
            else
            {
                EMRenderSupport.Add(this);
            }
        }