C# Class RegisterCamera

Inheritance: MonoBehaviour
Afficher le fichier Open project: LilTsubaki/Les-fragments-d-Erule Class Usage Examples

Méthodes publiques

Свойство Type Description
_cameraName string

Méthodes publiques

Méthode Description
CheckMove ( ) : void

Checks if the Camera has to be moved and changes its position if needed.

CheckZoom ( ) : void

Checks if the Camera has to be zoomed and changes its orthographic size if needed.

MoveTo ( Vector3 pos, float speed ) : void

Changes the state of the Camera in order to make it move.

OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void
ZoomOrthoTo ( float orthoSize, float speed ) : void

Changes the state of the Camera in order to make it zoom. Only with orthographic Cameras.

Method Details

CheckMove() public méthode

Checks if the Camera has to be moved and changes its position if needed.
public CheckMove ( ) : void
Résultat void

CheckZoom() public méthode

Checks if the Camera has to be zoomed and changes its orthographic size if needed.
public CheckZoom ( ) : void
Résultat void

MoveTo() public méthode

Changes the state of the Camera in order to make it move.
public MoveTo ( Vector3 pos, float speed ) : void
pos Vector3 The destination of the Camera.
speed float The duration of the movement, in seconds.
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

ZoomOrthoTo() public méthode

Changes the state of the Camera in order to make it zoom. Only with orthographic Cameras.
public ZoomOrthoTo ( float orthoSize, float speed ) : void
orthoSize float The wanted final orthographic size.
speed float The duration of the zoom, in seconds.
Résultat void

Property Details

_cameraName public_oe property

The name to register the Camera under.
public string _cameraName
Résultat string