Spectator

Summary

The spectator camera

Class Properties

NameReturn TypeDescription

canSeeWidgets

boolean Read/Write

Sets whether Widgets are visible to the spectator camera

canSeeStrokes

boolean Read/Write

Sets whether Strokes are visible to the spectator camera

canSeeSelection

boolean Read/Write

Sets whether Selection are visible to the spectator camera

canSeeHeadset

boolean Read/Write

Sets whether Headset are visible to the spectator camera

canSeePanels

boolean Read/Write

Sets whether Panels are visible to the spectator camera

canSeeUi

boolean Read/Write

Sets whether Ui are visible to the spectator camera

canSeeUsertools

boolean Read/Write

Sets whether Usertools are visible to the spectator camera

active

boolean Read/Write

Is the spectator camera currently active?

position

Vector3 Read/Write

The 3D position of the Spectator Camera Widget

rotation

Rotation Read/Write

The 3D orientation of the Spectator Camera

lockedToScene

boolean Read/Write

Sets whether the spectator camera moves with the scene or with the user

Class Methods

Spectator:LookAt(position)

Changes the rotation of the spectator camera to look towards a specific point

Returns: nil

Parameters:

NameTypeDefaultDescription

position

The point in the scene to look towards

Example

Spectator:LookAt(5, -4, 10)

Spectator:Stationary()

Sets the spectator camera's movement mode to stationary

Returns: nil

Example

Spectator:Stationary()

Spectator:SlowFollow()

Sets the spectator camera's movement mode to slowFollow

Returns: nil

Example

Spectator:SlowFollow()

Spectator:Wobble()

Sets the spectator camera's movement mode to wobble

Returns: nil

Example

Spectator:Wobble()

Spectator:Circular()

Sets the spectator camera's movement mode to circular

Returns: nil

Example

Spectator:Circular()

Last updated