UTK_TargetCameraPoint - golden-coconut-studio/TikiAdventuresWiki GitHub Wiki
-
This class is used only by the camera, and must be initialized on the array of hexagons. This class holds the TargetPoint the camera will pass by and the ability to change this camera properties.
-
Main Properties:
- Type: UTK_TargetCameraPoint
We have a function to update the camera properties we want. For that purpose, we must specify the type of changes we will be doing with the next enum:
ECameraPropertyEnum
- E_CanZoom (DisplayName = "Can Zoom"): enables or disables ALL zoom and FOV options.
- E_FOV (DisplayName = "FOV"): can change min, max and default FOV values.
- E_Zoom (DisplayName = "Zoom": can change min and max zoom distance.
- E_CanRotate (DisplayName = "Can Rotate"): enables or disables ALL rotation and alignt to tikis options.
- E_AngleRotation (DisplayName = "Angle Rotation"): can change max horizontal rotation angle.
- E_VerticalRotation (DisplayName = "Vertical Rotation"): can change if camera should follow tikis vertically and, otherwise, which angle should have.
- E_CanMove (DisplayName = "Can Move"): enables or disables ALL transition between points options.
- E_Transition (DisplayName = "Transition"): can change the time we must wait until next transition.
- E_ChangeHexagon (DisplayName = "Change Hexagon"): enables or disables the ability to change to another hexagon.
CameraPointName
- Type: FString
- Default: "DefaultCameraPointName"
- EditAnywhere
TargetPoint
- Type: ATargetPoint*
- EditAnywhere
- This point must be created on the world outliner and asigned to this variable on editor.
bCanChangeCameraProperties
- Type: bool
- Default: false
- EditAnywhere
- Enables or disables the properties to be changed on the camera.
MainCameraRef
- Type: ATK_MainCamera*
- Reference to the main camera. This is done internally and is necessary if we need to change its properties.
- Camera Modificable Properties:
All this properties have the option "EditAnywhere" and can be edited only if "bCanChangeCameraProperties" is true. Theirs functionality match the camera ones.
bCanZoom
- Type: bool
- Default: true
bCanChangeFOV
- Type: bool
- Default: true
DefaultFOV
- Type: float
- Default: 0.0f
MaxFOV
- Type: float
- Default: 0.0f
- Only editable when "bCanChangeFOV" is true
MinFOV
- Type: float
- Default: 0.0f
- Only editable when "bCanChangeFOV" is true
MaxDistanceArmLength
- Type: float
- Default: 0.0f
MinDistanceArmLength
- Type: float
- Default: 0.0f
bCanRotate
- Type: bool
- Default: true
MaxAngleCamera
- Type: float
- Default: 0.0f
bCanAutoAlignVertical
- Type: bool
- Default: false
DefaultVerticalAngle
- Type: float
- Default: 0.0f
- Only editable when "bCanAutoAlignVertical" is false
bCanMove
- Type: bool
- Default: true
bCanChangeHexagon
- Type: bool
- Default: true
WaitTimeUntilTransition
- Type: float
- Default: 0.0f
- Functionality:
GetName
- OUT: FString: CameraPointName
- Returns the name of this target point.
NoPointWarning
- Prints a warning message telling us there is no point attached.
GetLocation
- OUT: FVector: ActorLocation
- Returns the location of the actor (world).
GetRotation
- OUT: FRotator: ActorRotation
- Returns the rotation of the actor (world).
Init*
- IN: ATK_MainCamera*: Camera
- Sets self reference to MainCamera.
ChangeAllCameraProperties
- Calls "ChangeCameraProperty" with every property available for change.
ChangeCameraProperty
- IN: ECameraPropertyEnum: PropertyToChange
- Changes MainCamera properties that matches the ENUM passed as parameter.