WoopWoop-Docs
|
Represents a camera that can be used to view the scene. More...
Public Member Functions | |
override void | Start () |
Called when the component starts. | |
override void | Update (float deltaTime) |
Called every frame. | |
override void | OnEndOfFrame () |
Called at the end of each frame. | |
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 | Stop () |
Called when the component is removed. | |
virtual void | OnDrawGizmo () |
Tells the renderer how to draw the object's editor gizmos. | |
Static Public Member Functions | |
static Camera | Main () |
Gets the main camera. | |
Public Attributes | |
Camera2D | camera |
The 2D camera. | |
int | width |
The width of the camera. | |
int | height |
Color | backgroundColor = Raylib.WHITE |
The background color of the camera view. | |
readonly float | centerX = WoopWoopEngine.screenWidth / 2 |
The center X position of the camera. | |
readonly float | centerY = WoopWoopEngine.screenHeight / 2 |
The center Y position of the camera. | |
Properties | |
bool | IsMain [get, set] |
Indicates whether this camera is the main camera. | |
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 | |
bool | isMain = false |
Static Private Attributes | |
static Camera | mainCamera |
Represents a camera that can be used to view the scene.
|
static |
Gets the main camera.
|
virtual |
Called at the end of each frame.
Reimplemented from WoopWoop.Component.
|
virtual |
Called when the component starts.
Reimplemented from WoopWoop.Component.
|
virtual |
Called every frame.
deltaTime | The time elapsed since the last frame. |
Reimplemented from WoopWoop.Component.
Color WoopWoop.Camera.backgroundColor = Raylib.WHITE |
The background color of the camera view.
Camera2D WoopWoop.Camera.camera |
The 2D camera.
readonly float WoopWoop.Camera.centerX = WoopWoopEngine.screenWidth / 2 |
The center X position of the camera.
readonly float WoopWoop.Camera.centerY = WoopWoopEngine.screenHeight / 2 |
The center Y position of the camera.
int WoopWoop.Camera.height |
|
private |
|
staticprivate |
int WoopWoop.Camera.width |
The width of the camera.
|
getset |
Indicates whether this camera is the main camera.