Skip to content

EditorPin beta ​

Class of @v12-engine/editor

ts
export declare class EditorPin

The 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 ​

ts
constructor(host: PinHost);

Constructs a new instance of the EditorPin class

dropMissing ​

ts
dropMissing(): void;

After the map changed: what was pinned and is gone let go of, and the pin with the last of it

on ​

ts
get on(): boolean;

Whether the Inspector is pinned

pin ​

ts
pin(): boolean;

Pins the Inspector to what is selected now. False (and nothing pinned) with nothing selected

selection ​

ts
get selection(): EditorSelection | undefined;

The things it is pinned to, as selected (nothing when it is not pinned)

toggle ​

ts
toggle(): void;

Pinned if it is not, unpinned if it is (the key): with nothing to pin to, nothing happens

unpin ​

ts
unpin(): void;

Lets the Inspector follow what is selected again

view ​

ts
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