Component

csharp
public abstract class Component : Object

Namespace NodeWorld.Flux.

A component of an object of the world.

Properties

gameObject

csharp
public GameObject gameObject { get; }

The GameObject the component is on.

transform

csharp
public Transform transform { get; }

The Transform of that GameObject.

Methods

GetComponent<T>

csharp
public T GetComponent<T>()
    where T : Component

The component of that type on the same GameObject, or null.