Declaración
func SwitchCamera(player entity<Player>, camera entity<Camera>, transitionType CameraTransitionType, transitionTime float)
go
Parámetros
Entrada
Nombre | Tipo | Descripción |
---|---|---|
Player | Player | target player |
Camera | CameraConfig | target camera |
Transition Type | CameraTransitionType | Switching method, you can choose to keep the original logic or progressive |
Transition Time (ms) | Float | Switching time is the time to switch cameras in progressive mode |