Skip to main content

Interface: Resizeable

components.Resizeable

Whether this component can be resized. The meaning of this can vary depending on the component: resizing a Renderer component could mean changing its resolution, whereas resizing a Mesh would change its scale.

Implemented by

Properties

getSize

getSize: () => Vector2

Type declaration

▸ (): Vector2

Gets the current size of this component (e.g. the resolution of a Renderer component.

Returns

Vector2

Defined in

temp/components/base-types/base-types.ts:93


resize

resize: (size?: Vector2) => void

Type declaration

▸ (size?): void

Sets size of this component (e.g. the resolution of a Renderer component.

Parameters
NameType
size?Vector2
Returns

void

Defined in

temp/components/base-types/base-types.ts:88