WoopWoop-Docs
|
Represents a component that can be attached to an entity in the game world. More...
Public Member Functions | |
void | Attach (Entity entity) |
Attaches the component to an entity. | |
virtual void | Awake () |
Awake is called when the component is initialized, regardless of whether or not the script is enabled. | |
virtual void | Start () |
Called when the component is started if it's enabled. | |
virtual void | Update (float deltaTime) |
Called every frame to update the component's state. | |
virtual void | OnEndOfFrame () |
Called on the end of every frame. | |
virtual void | Stop () |
Called when the component is removed. | |
virtual void | OnDrawGizmo () |
Tells the renderer how to draw the object's editor gizmos. | |
Properties | |
Entity | entity [get, private set] |
The entity to which this component is attached. | |
Transform | transform [get] |
The transform of the entity to which this component is attached. | |
bool | Enabled = true [get, set] |
Determines whether the component is enabled. | |
Represents a component that can be attached to an entity in the game world.
void WoopWoop.Component.Attach | ( | Entity | entity | ) |
Attaches the component to an entity.
entity | The entity to attach the component to. |
|
virtual |
Awake is called when the component is initialized, regardless of whether or not the script is enabled.
Reimplemented in WoopWoop.BoxCollider, WoopWoop.TrailRenderer, and WoopWoop.UI.Canvas.
|
virtual |
Tells the renderer how to draw the object's editor gizmos.
Reimplemented in WoopWoop.BoxCollider, WoopWoop.PointCollider, and WoopWoop.UI.Canvas.
|
virtual |
Called on the end of every frame.
Reimplemented in WoopWoop.Camera.
|
virtual |
Called when the component is started if it's enabled.
Reimplemented in WoopWoop.Camera, and WoopWoop.TextureRenderer.
|
virtual |
Called when the component is removed.
Reimplemented in WoopWoop.TextureRenderer.
|
virtual |
Called every frame to update the component's state.
Reimplemented in WoopWoop.Camera, WoopWoop.PointCollider, WoopWoop.BasicShapeRenderer, WoopWoop.LineRenderer, WoopWoop.PolygonRenderer, WoopWoop.TextureRenderer, WoopWoop.TrailRenderer, WoopWoop.UI.Canvas, WoopWoop.UI.Button, WoopWoop.UI.Checkbox, WoopWoop.UI.ColorPicker, WoopWoop.UI.DropdownMenu, WoopWoop.UI.HorizontalGrid, WoopWoop.UI.VerticalGrid, WoopWoop.UI.Label, WoopWoop.UI.Slider, WoopWoop.UI.TextRenderer, WoopWoop.UI.UIBoundsComponent, and WoopWoop.UI.UIWindow.
|
getset |
Determines whether the component is enabled.
|
getprivate set |
The entity to which this component is attached.
|
get |
The transform of the entity to which this component is attached.