WoopWoop-Docs
|
Base class for rendering components. More...
Public Attributes | |
Color | Color = Raylib.BLACK |
The color of the renderer. | |
Static Protected Member Functions | |
static Vector2 | GetOriginalPositionOfTransform (Transform transform, Pivot pivot) |
Gets the original position of the transform based on the pivot. | |
Properties | |
byte | Layer [get, set] |
The rendering layer of the renderer. | |
Properties inherited from WoopWoop.Component | |
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. | |
Private Attributes | |
byte | layer = 0 |
Additional Inherited Members | |
Public Member Functions inherited from WoopWoop.Component | |
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. | |
Base class for rendering components.
|
staticprotected |
Gets the original position of the transform based on the pivot.
transform | The transform. |
pivot | The pivot point. |
Color WoopWoop.Renderer.Color = Raylib.BLACK |
The color of the renderer.
|
private |
|
getset |
The rendering layer of the renderer.