演員參數
@Actor()
class ActorWithParameters extends BaseActor {
@Parameter() aNumber: number
@Parameter() aBoolen: boolean
@Parameter() aString: string
@Parameter() vec2: THREE.Vector2
@Parameter() vec3: THREE.Vector3
@Parameter() color: THREE.Color
@Parameter() rotation: THREE.Euler
// An instane of a 3D model asset
@Parameter() mesh: THREE.Mesh
// An instance of a material
@Parameter() material: THREE.Material
// An audio buffer from an audio asset
@Parameter() audio: AudioBuffer
// Refer to another actor in the scene.
// You can also use your own actor class to only be
// able to select actors of that type
@Parameter() actor: BaseActor
}最后更新于