Forge/Integration/EntityContainerEventMonitor.cs
/// <summary>
/// Returns the root GameObject that should be the parent of all created EntityContainers.
/// </summary>
Returns the root GameObject that should be the parent of all created EntityContainers.
Returns the root GameObject that should be the parent of all created EntityContainers .
private GameObject GetRoot() {
            const string rootName = "Entities";
            if (Debug.isDebugBuild) {
                GameObject root = GameObject.Find(rootName);
                if (root != null) {
                    Debug.LogError("Life-cycle error; there was already an object with name = "
                        + rootName);
                    return root;
                }
            }
            return new GameObject(rootName);
        }
private GameObject GetRoot ( ) { const string rootName = " " ; if ( Debug . isDebugBuild ) { GameObject root = GameObject . Find ( rootName ) ; if ( root != null ) { Debug . LogError ( " " + rootName ) ; return root ; } } return new GameObject ( rootName ) ; }
Returns the root GameObject that should be the parent of all created EntityContainers.
Returns the root GameObject that should be the parent of all created EntityContainers .
// if we're in a debug build, do some verification to make sure that we are not creating // two GameObjects with the same rootName