Skip to content
M2O Scripting APIScripting reference
Runtime classClient APIGenerated

Render2DRectangle

Defined in: client/api.d.ts:511

Native rectangle backed by a color material.

new Render2DRectangle(): Render2DRectangle

Render2DRectangle

Render2DNode.constructor

bringToFront(): boolean

Defined in: client/api.d.ts:483

Moves this node to the front of its siblings.

boolean

Render2DNode.bringToFront


destroy(): boolean

Defined in: client/api.d.ts:493

Destroys this node and all descendants.

boolean

Render2DNode.destroy


moveBefore(sibling): boolean

Defined in: client/api.d.ts:478

Moves this node before a sibling.

Render2DNode

boolean

Render2DNode.moveBefore


sendToBack(): boolean

Defined in: client/api.d.ts:488

Moves this node behind its siblings.

boolean

Render2DNode.sendToBack


setClipRect(left, top, right, bottom): boolean

Defined in: client/api.d.ts:468

Sets the normalized clipping rectangle.

number

number

number

number

boolean

Render2DNode.setClipRect


setParent(parent): boolean

Defined in: client/api.d.ts:473

Moves this node under a container or the canvas root.

Render2DContainer | null

boolean

Render2DNode.setParent

readonly canvasId: number

Defined in: client/api.d.ts:408

Owning canvas identifier.

Render2DNode.canvasId


clipping: boolean

Defined in: client/api.d.ts:443

Node clipping state.

Render2DNode.clipping


readonly clipRect: Render2DRect

Defined in: client/api.d.ts:463

Current normalized clipping rectangle.

Render2DNode.clipRect


color: Color

Defined in: client/api.d.ts:515

Normalized RGBA material color.


readonly destroyed: boolean

Defined in: client/api.d.ts:423

Whether this handle is no longer valid.

Render2DNode.destroyed


readonly id: number

Defined in: client/api.d.ts:403

Opaque node identifier.

Render2DNode.id


nonOverlapGroup: number

Defined in: client/api.d.ts:458

Native non-overlap group.

Render2DNode.nonOverlapGroup


readonly parentId: number

Defined in: client/api.d.ts:413

Parent node identifier, or zero for the canvas root.

Render2DNode.parentId


pixelClipping: boolean

Defined in: client/api.d.ts:448

Pixel clipping state.

Render2DNode.pixelClipping


position: Vector2

Defined in: client/api.d.ts:433

Normalized position local to the parent.

Render2DNode.position


size: Vector2

Defined in: client/api.d.ts:438

Normalized node size.

Render2DNode.size


readonly type: "container" | "rectangle" | "text" | "texture"

Defined in: client/api.d.ts:418

Native node type.

Render2DNode.type


useAllMonitors: boolean

Defined in: client/api.d.ts:453

Whether the node spans all monitors.

Render2DNode.useAllMonitors


visible: boolean

Defined in: client/api.d.ts:428

Node visibility.

Render2DNode.visible