EditorPin beta
Class of @v12-engine/editor
export declare class EditorPinThe Inspector pinned to what was selected: the pinned things stay in it while others are picked in the scene or the Hierarchy, and what is changed in it is changed on them. Gone when the things are (deleted, or undone away)
A part of the editor, as it gives it (editor.pin)
Members
constructor
constructor(host: PinHost);Constructs a new instance of the EditorPin class
dropMissing
dropMissing(): void;After the map changed: what was pinned and is gone let go of, and the pin with the last of it
on
get on(): boolean;Whether the Inspector is pinned
pin
pin(): boolean;Pins the Inspector to what is selected now. False (and nothing pinned) with nothing selected
selection
get selection(): EditorSelection | undefined;The things it is pinned to, as selected (nothing when it is not pinned)
toggle
toggle(): void;Pinned if it is not, unpinned if it is (the key): with nothing to pin to, nothing happens
unpin
unpin(): void;Lets the Inspector follow what is selected again
view
view(): EditorClient | undefined;The editor as the pinned Inspector sees it: the same, but for its selection, which is the pinned things. The parts that reach the selection through the editor (the clipboard, prefabs) see it so too. Nothing without a pin