TopDown Engine
v3.6
|
A class that handles camera follow for Cinemachine powered cameras More...
Public Member Functions | |
virtual void | SetTarget (Character character) |
virtual void | StartFollowing () |
Starts following the LevelManager's main player More... | |
virtual void | StopFollowing () |
Stops following any target More... | |
virtual void | OnMMEvent (MMCameraEvent cameraEvent) |
virtual void | OnMMEvent (TopDownEngineEvent topdownEngineEvent) |
Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMCameraEvent > | |
void | OnMMEvent (T eventType) |
Public Member Functions inherited from MoreMountains.Tools.MMEventListener< TopDownEngineEvent > | |
void | OnMMEvent (T eventType) |
Public Attributes | |
bool | FollowsAPlayer = true |
Whether or not this camera should follow a player. More... | |
bool | ConfineCameraToLevelBounds = true |
Whether to confine this camera to the level bounds, as defined in the LevelManager. More... | |
bool | ListenToSetConfinerEvents = true |
If this is true, this confiner will listen to set confiner events. More... | |
Character | TargetCharacter |
the target character this camera should follow More... | |
Protected Member Functions | |
virtual void | Awake () |
On Awake we grab our components More... | |
virtual void | Start () |
On Start we assign our bounding volume More... | |
virtual IEnumerator | RefreshPosition () |
virtual void | OnEnable () |
virtual void | OnDisable () |
Properties | |
virtual bool | FollowsPlayer [get, set] |
True if the camera should follow the player. More... | |
A class that handles camera follow for Cinemachine powered cameras
|
protectedvirtual |
On Awake we grab our components
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
virtual |
|
protectedvirtual |
On Start we assign our bounding volume
|
virtual |
Starts following the LevelManager's main player
|
virtual |
Stops following any target
bool MoreMountains.TopDownEngine.CinemachineCameraController.ConfineCameraToLevelBounds = true |
Whether to confine this camera to the level bounds, as defined in the LevelManager.
bool MoreMountains.TopDownEngine.CinemachineCameraController.FollowsAPlayer = true |
Whether or not this camera should follow a player.
bool MoreMountains.TopDownEngine.CinemachineCameraController.ListenToSetConfinerEvents = true |
If this is true, this confiner will listen to set confiner events.
Character MoreMountains.TopDownEngine.CinemachineCameraController.TargetCharacter |
the target character this camera should follow
|
getset |
True if the camera should follow the player.