|
Endstar LUA API Documentation
|
Base type that provides camera functionality for Cutscenes. Follow target takes precedence over move to position. LookAt target takes precedence over pitch & yaw settings. More...
Public Member Functions | |
| void | EnterShot (Context context, bool global) |
| Enter/transition to this camera shot. | |
| void | ExitShot (Context context, bool global) |
| Exit this shot. | |
| void | EnterShotManaged (Context context, Context manager) |
| Enter, transition, or add a player group camera shot depending on this managed shot's current state. | |
| void | ExitShotManaged (Context manager) |
| Exit a managed cutscene. | |
| void | SetFollowTarget (Context context, Context followTarget) |
| Set the target that this camera should follow. | |
| void | SetFollowOffset (Context context, UnityEngine.Vector3 offset) |
| Set where the camera will be positioned relative to the follow target (if one exists) | |
| void | SetLookAtTarget (Context context, Context lookAtTarget) |
| Set the target that this camera should look at. | |
| void | SetLookOffset (Context context, UnityEngine.Vector3 offset) |
| Sets where the camera will center its shot relative to the Follow/LookAt target. | |
| void | SetCameraPitch (Context context, float value) |
| Set the X rotation of the camera. | |
| void | SetCameraYaw (Context context, float value) |
| Set the Y rotation of the camera. | |
| void | SetFieldOfView (Context context, float value) |
| Set the field of view of the camera. | |
| void | SetFollowDampening (Context context, float value) |
| Sets the camera following dampening. (Follow cameras only) | |
| void | SetLookDampening (Context context, float value) |
| Sets the camera aim dampening. (Follow and Look At cameras only) | |
| void | SetDuration (Context context, float value) |
| Sets the duration of this camera shot. (0 = infinite) | |
| void | SetDuration (Context context, float primaryDurationValue, float secondaryDurationValue) |
| Sets the durations of this camera shot. Some camera shots use two duration values. (ex: MoveTo Camera: Move Duration = primary, Hold Shot Duration = secondary) | |
| void | SetMoveToPosition (Context context, Vector3 moveToPosition) |
| Sets the position that the camera will move to during this shot. | |
| void | SetMoveToRotation (Context context, float pitch, float yaw) |
| Sets the rotation that the camera will move to during this shot. | |
| void | SetTransitionIn (Context context, int transitionType, float transitionDuration) |
| Camera transition settings when changing to this camera. | |
| void | SetTransitionOut (Context context, int transitionType, float transitionDuration) |
| Camera transition settings when exiting cutscene from this camera. | |
Base type that provides camera functionality for Cutscenes. Follow target takes precedence over move to position. LookAt target takes precedence over pitch & yaw settings.
| void EnterShot | ( | Context | context, |
| bool | global ) |
Enter/transition to this camera shot.
| context | The source context of this change (usually the player that will enter this camera shot). |
| global | Is this a global camera shot? (Private if not) |
Enter, transition, or add a player group camera shot depending on this managed shot's current state.
| context | The source context of this change (usually the player that will exit this camera shot). |
| manager | The prop that is managing the group camera state |
| void ExitShot | ( | Context | context, |
| bool | global ) |
Exit this shot.
| context | The source context of this change (usually the player that will exit this camera shot). |
| global | Is this a global camera shot? (Private if not) |
| void ExitShotManaged | ( | Context | manager | ) |
Exit a managed cutscene.
| manager | The prop that is managing the group camera state |
| void SetCameraPitch | ( | Context | context, |
| float | value ) |
Set the X rotation of the camera.
| context | The context triggering this change |
| value | Z Rotation |
| void SetCameraYaw | ( | Context | context, |
| float | value ) |
Set the Y rotation of the camera.
| context | The context triggering this change |
| value | Y Rotation |
| void SetDuration | ( | Context | context, |
| float | primaryDurationValue, | ||
| float | secondaryDurationValue ) |
Sets the durations of this camera shot. Some camera shots use two duration values. (ex: MoveTo Camera: Move Duration = primary, Hold Shot Duration = secondary)
| context | The context triggering this change |
| primaryDurationValue | Primary duration value |
| secondaryDurationValue | Secondary duration value |
| void SetDuration | ( | Context | context, |
| float | value ) |
Sets the duration of this camera shot. (0 = infinite)
| context | The context triggering this change |
| value | Duration |
| void SetFieldOfView | ( | Context | context, |
| float | value ) |
Set the field of view of the camera.
| context | The context triggering this change |
| value | Field of view |
| void SetFollowDampening | ( | Context | context, |
| float | value ) |
Sets the camera following dampening. (Follow cameras only)
| context | The context triggering this change |
| value | Dampening value 0-20 |
| void SetFollowOffset | ( | Context | context, |
| UnityEngine.Vector3 | offset ) |
Set where the camera will be positioned relative to the follow target (if one exists)
| context | The context triggering this change |
| offset | Relative position |
Set the target that this camera should follow.
| context | The context triggering this change |
| followTarget | The context to follow |
Set the target that this camera should look at.
| context | The context triggering this change |
| lookAtTarget | The context to look at |
| void SetLookDampening | ( | Context | context, |
| float | value ) |
Sets the camera aim dampening. (Follow and Look At cameras only)
| context | The context triggering this change |
| value | Dampening value 0-20 |
| void SetLookOffset | ( | Context | context, |
| UnityEngine.Vector3 | offset ) |
Sets where the camera will center its shot relative to the Follow/LookAt target.
| context | The context triggering this change |
| offset | Relative position |
Sets the position that the camera will move to during this shot.
| context | The context triggering this change |
| moveToPosition | World space position |
| void SetMoveToRotation | ( | Context | context, |
| float | pitch, | ||
| float | yaw ) |
Sets the rotation that the camera will move to during this shot.
| context | The context triggering this change |
| pitch | Pitch |
| yaw | Local yaw |
| void SetTransitionIn | ( | Context | context, |
| int | transitionType, | ||
| float | transitionDuration ) |
Camera transition settings when changing to this camera.
| context | The context triggering this change |
| transitionType | The type of transition as CameraTransition |
| transitionDuration | Duration |
| void SetTransitionOut | ( | Context | context, |
| int | transitionType, | ||
| float | transitionDuration ) |
Camera transition settings when exiting cutscene from this camera.
| context | The context triggering this change |
| transitionType | The type of transition as CameraTransition |
| transitionDuration | Duration |