PreviewCamera
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
cameraCloseEnough
cameraMoveSpeed
cameraPoints
moveImmediatly
networkManager
stopOnJoinRoom
targetCam
cameraCloseEnough
How close to the point before considering it close enough?
| Exposed Value | Type | Default Value |
|---|---|---|
| public | float | 0.1f |
cameraMoveSpeed
How fast the camera will move between points.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | float | 0.01f |
cameraPoints
List of points the camera will travel do while waiting for the player to join the game.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | List |
new List |
moveImmediatly
Whether or not you want to move the camera using the camera points before the player joins a game.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | bool | true |
networkManager
The Network Manager component to see if you have joined a room or not
| Exposed Value | Type | Default Value |
|---|---|---|
| public | NetworkManager | null |
stopOnJoinRoom
Stop the preview camera when you successfully join a room.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | bool | true |
targetCam
The camera that you want to manipulate.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | Transform | null |
Function Definitions
Select the function name from below to jump directly to it on this page.
GetCameraPoint
ResetPreviewCameraValues
Start
StartPreviewCamera
StopPreviewCamera
Update
public virtual Transform GetCameraPoint()
Get the target transform point to move towards, set the target index, the start time, and the length from this to that point for smooth transitioning.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | The target transform point |
No parameters
public virtual void ResetPreviewCameraValues()
Will remove the current target point and make the target index to be zero.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters
protected virtual void Start()
Sets the needed variables for later use inside of this class
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
public virtual void StartPreviewCamera()
Make the camera start moving.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters
public virtual void StopPreviewCamera()
Make the camera stop moving and call
ResetPreviewCameraValuesfunction.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters
public virtual void Update()
Used to smoothly transition the cameras rotations and position based on the current target point it’s headed towards.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters