private static Internal_CreateGameObject ( |
||
mono | ||
name | string | |
return | void |
/// <summary> /// <para>Creates a game object and attaches the specified components.</para> /// </summary> /// <param name="name"></param> /// <param name="components"></param> public GameObject(string name, params System.Type[] components) { GameObject.Internal_CreateGameObject(this, name); foreach (System.Type component in components) { this.AddComponent(component); } }
public GameObject(string name, params Type[] components) { GameObject.Internal_CreateGameObject(this, name); for (int i = 0; i < components.Length; i++) { Type componentType = components[i]; this.AddComponent(componentType); } }
/// <summary> /// <para>Creates a new game object.</para> /// </summary> public GameObject() { GameObject.Internal_CreateGameObject(this, (string)null); }
/// <summary> /// <para>Creates a new game object, named name.</para> /// </summary> /// <param name="name"></param> public GameObject(string name) { GameObject.Internal_CreateGameObject(this, name); }
public GameObject() { GameObject.Internal_CreateGameObject(this, null); }