FairyGUI.DisplayObject.CreateGameObject C# (CSharp) Method

CreateGameObject() protected method

protected CreateGameObject ( string gameObjectName ) : void
gameObjectName string
return void
        protected void CreateGameObject(string gameObjectName)
        {
            gameObject = new GameObject(gameObjectName);
            cachedTransform = gameObject.transform;
            if (Application.isPlaying)
                Object.DontDestroyOnLoad(gameObject);
            gameObject.hideFlags = DisplayOptions.hideFlags;
            gameObject.SetActive(false);
            _ownsGameObject = true;
        }