Skip to content
M2O Scripting APIScripting reference
Data shapeClient APIGenerated

Render2DTexture

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

Native rectangle backed by a game texture material.

bringToFront(): boolean

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

Moves this node to the front of its siblings.

boolean

Render2DNode.bringToFront


destroy(): boolean

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

Destroys this node and all descendants.

boolean

Render2DNode.destroy


moveBefore(sibling): boolean

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

Moves this node before a sibling.

Render2DNode

boolean

Render2DNode.moveBefore


sendToBack(): boolean

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

Moves this node behind its siblings.

boolean

Render2DNode.sendToBack


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

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

Sets the normalized clipping rectangle.

number

number

number

number

boolean

Render2DNode.setClipRect


setParent(parent): boolean

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

Moves this node under a container or the canvas root.

Render2DContainer | null

boolean

Render2DNode.setParent


setResource(resource): boolean

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

Queues a replacement texture resource; unresolved resources remain hidden and resolution is reported by resolved.

string

boolean

readonly canvasId: number

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

Owning canvas identifier.

Render2DNode.canvasId


clipping: boolean

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

Node clipping state.

Render2DNode.clipping


readonly clipRect: Render2DRect

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

Current normalized clipping rectangle.

Render2DNode.clipRect


depth: number

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

Native material depth.


readonly destroyed: boolean

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

Whether this handle is no longer valid.

Render2DNode.destroyed


readonly id: number

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

Opaque node identifier.

Render2DNode.id


nonOverlapGroup: number

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

Native non-overlap group.

Render2DNode.nonOverlapGroup


readonly parentId: number

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

Parent node identifier, or zero for the canvas root.

Render2DNode.parentId


pixelClipping: boolean

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

Pixel clipping state.

Render2DNode.pixelClipping


position: Vector2

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

Normalized position local to the parent.

Render2DNode.position


readonly resolved: boolean

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

Whether the texture resource resolved successfully.


readonly resource: string

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

Current texture hash name or path.


size: Vector2

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

Normalized node size.

Render2DNode.size


tint: Color

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

Normalized RGBA texture tint.


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

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

Native node type.

Render2DNode.type


useAllMonitors: boolean

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

Whether the node spans all monitors.

Render2DNode.useAllMonitors


visible: boolean

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

Node visibility.

Render2DNode.visible