GameObject
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
public sealed class GameObject : ObjectNamespace NodeWorld.Flux.
An object of the world: a GameObject of the scene, or one the scripts made. On the server, an object of the server's copy of the scene, with its transform only.
Properties
transform
public Transform transform { get; }The object's Transform.
activeSelf
public bool activeSelf { get; }The object's own active state (SetActive).
activeInHierarchy
public bool activeInHierarchy { get; }The object is active and so is every parent.
layer
public int layer { get; set; }The object's layer, 0 to 31. Layer 31 is NodeWorld's interface: setting it is refused.
tag
public string tag { get; set; }The object's tag. A tag the world's project does not define is refused.
Methods
SetActive
public void SetActive(bool value)Turns the object on or off, with its children.
GetComponent<T>
public T GetComponent<T>()
where T : ComponentThe component of that type on this GameObject, or null.
GetComponents<T>
public T[] GetComponents<T>()
where T : ComponentThe components of that type on this GameObject (several colliders, several audio sources...).
GetComponentsInChildren<T>
public T[] GetComponentsInChildren<T>(bool includeInactive = false)
where T : ComponentThe components of that type on this GameObject and its children (inactive ones too if asked), in hierarchy order.
GetComponentInChildren<T>
public T GetComponentInChildren<T>(bool includeInactive = false)
where T : ComponentThe first component of that type on this GameObject and its children (inactive ones too if asked), in hierarchy order, or null.
GetScript<T>
public T GetScript<T>()
where T : FluxScriptThe FL# script of that class on this GameObject (the first one), or null.
GetScripts<T>
public T[] GetScripts<T>()
where T : FluxScriptThe FL# scripts of that class on this GameObject.
GetScriptsInChildren<T>
public T[] GetScriptsInChildren<T>(bool includeInactive = false)
where T : FluxScriptThe FL# scripts of that class on this GameObject and its children (inactive ones too if asked), in hierarchy order.
CompareTag
public bool CompareTag(string tag)The object has this tag.
Find
public static GameObject Find(string name)An object of the world with this name, or null. Only the world's own objects: not the avatars, portals, photo cameras and voices NodeWorld puts in the scene.
FindPath
public static GameObject FindPath(string path)The object at this path from a root of the world scene ("Root/Child/Leaf"), or null.
