editor.component
This package holds more than this page lists. See all of its files in its world.
README.md
controller.editor
The viewport camera you author from. It is the behavior on the editor scene's EditorCamera — a world's players never meet it, which is why it reads the editor's controls rather than a game's.
Rotates the pivot child exposed by a sibling Player component if present, otherwise rotates self.
Public fields: moveSpeed, sensitivity, speedMin, speedMax.
Controls come from the map on inputMap, @builtin::inputMaps.editor by default: move to fly, flyVertical to rise and drop, look to aim while flying, zoom (the wheel, turned over the Scene) to move the camera along the way it faces, or, while the right mouse button is held or the pointer locked, to set how fast it flies; saveScene (Ctrl+S) writes the scene being edited into its file. Rebind them by pointing inputMap at another map.
entity(id).component.add("controller.editor", { moveSpeed = 10 })