Skip to content

NestedPrefab beta ​

Interface of @v12-engine/editor

ts
export interface NestedPrefab

A prefab inside a prefab: which, where its middle is from the outer one's (turned and sized), and what this placement of it overrides and leaves out, as a variant would

Members ​

id ​

ts
id: number;

Its own id in the outer prefab: what the ids of its parts are made from (nestedPartId)

over ​

ts
over?: PrefabOverrides;

Fields of the nested prefab's parts this placement sets apart

prefab ​

ts
prefab: string;

The name of the prefab placed inside the outer one

scale ​

ts
scale?: number;

How big the nested prefab is placed; 1 when left out

turn ​

ts
turn?: number;

Radians, the way facings turn

without ​

ts
without?: Partial<Record<string, number[]>>;

The nested prefab's parts this placement leaves out

x ​

ts
x: number;

Where the nested prefab's middle is from the outer one's, along x, in cells

z ​

ts
z: number;

Where the nested prefab's middle is from the outer one's, along z, in cells