Skip to content

ManipulateCameraAction ​

Inherits: EventAction < Resource

Action to manipulate the game camera through the CameraController. Allows changing camera targets, position, and movement modes.

Properties ​

Vector3target_position
MovementTypemovement_typeMovementType.INSTANT

Variables ​

CameraControllercamera_controller

Methods ​

Stringget_function_description()
CameraControllerfind_camera_controller()
Dictionarysave()
voidload_data( data: Dictionary )

Enumerations ​

enum MovementType ​

The options of movement type: instant, pan.

  • INSTANT = 0
  • PAN = 1

Property descriptions ​

Vector3 target_position ​

Position to move camera to (for SET_POSITION)

MovementType movement_type = MovementType.INSTANT ​

How the camera should move to the position (for SET_POSITION)

Variable descriptions ​

CameraController camera_controller ​

Reference to the camera container

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

CameraController find_camera_controller() ​

Find and return the camera manager from the game

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary