Render2DTexture
Defined in: client/api.d.ts:585
Native rectangle backed by a game texture material.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Render2DTexture():
Render2DTexture
Returns
Section titled “Returns”Render2DTexture
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”bringToFront()
Section titled “bringToFront()”bringToFront():
boolean
Defined in: client/api.d.ts:483
Moves this node to the front of its siblings.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”destroy()
Section titled “destroy()”destroy():
boolean
Defined in: client/api.d.ts:493
Destroys this node and all descendants.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”moveBefore()
Section titled “moveBefore()”moveBefore(
sibling):boolean
Defined in: client/api.d.ts:478
Moves this node before a sibling.
Parameters
Section titled “Parameters”sibling
Section titled “sibling”Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”sendToBack()
Section titled “sendToBack()”sendToBack():
boolean
Defined in: client/api.d.ts:488
Moves this node behind its siblings.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”setClipRect()
Section titled “setClipRect()”setClipRect(
left,top,right,bottom):boolean
Defined in: client/api.d.ts:468
Sets the normalized clipping rectangle.
Parameters
Section titled “Parameters”number
number
number
bottom
Section titled “bottom”number
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”setParent()
Section titled “setParent()”setParent(
parent):boolean
Defined in: client/api.d.ts:473
Moves this node under a container or the canvas root.
Parameters
Section titled “Parameters”parent
Section titled “parent”Render2DContainer | null
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”setResource()
Section titled “setResource()”setResource(
resource):boolean
Defined in: client/api.d.ts:609
Queues a replacement texture resource; unresolved resources remain hidden and resolution is reported by resolved.
Parameters
Section titled “Parameters”resource
Section titled “resource”string
Returns
Section titled “Returns”boolean
Properties
Section titled “Properties”canvasId
Section titled “canvasId”
readonlycanvasId:number
Defined in: client/api.d.ts:408
Owning canvas identifier.
Inherited from
Section titled “Inherited from”clipping
Section titled “clipping”clipping:
boolean
Defined in: client/api.d.ts:443
Node clipping state.
Inherited from
Section titled “Inherited from”clipRect
Section titled “clipRect”
readonlyclipRect:Render2DRect
Defined in: client/api.d.ts:463
Current normalized clipping rectangle.
Inherited from
Section titled “Inherited from”depth:
number
Defined in: client/api.d.ts:604
Native material depth.
destroyed
Section titled “destroyed”
readonlydestroyed:boolean
Defined in: client/api.d.ts:423
Whether this handle is no longer valid.
Inherited from
Section titled “Inherited from”
readonlyid:number
Defined in: client/api.d.ts:403
Opaque node identifier.
Inherited from
Section titled “Inherited from”nonOverlapGroup
Section titled “nonOverlapGroup”nonOverlapGroup:
number
Defined in: client/api.d.ts:458
Native non-overlap group.
Inherited from
Section titled “Inherited from”parentId
Section titled “parentId”
readonlyparentId:number
Defined in: client/api.d.ts:413
Parent node identifier, or zero for the canvas root.
Inherited from
Section titled “Inherited from”pixelClipping
Section titled “pixelClipping”pixelClipping:
boolean
Defined in: client/api.d.ts:448
Pixel clipping state.
Inherited from
Section titled “Inherited from”position
Section titled “position”position:
Vector2
Defined in: client/api.d.ts:433
Normalized position local to the parent.
Inherited from
Section titled “Inherited from”resolved
Section titled “resolved”
readonlyresolved:boolean
Defined in: client/api.d.ts:589
Whether the texture resource resolved successfully.
resource
Section titled “resource”
readonlyresource:string
Defined in: client/api.d.ts:594
Current texture hash name or path.
size:
Vector2
Defined in: client/api.d.ts:438
Normalized node size.
Inherited from
Section titled “Inherited from”tint:
Color
Defined in: client/api.d.ts:599
Normalized RGBA texture tint.
readonlytype:"container"|"rectangle"|"text"|"texture"
Defined in: client/api.d.ts:418
Native node type.
Inherited from
Section titled “Inherited from”useAllMonitors
Section titled “useAllMonitors”useAllMonitors:
boolean
Defined in: client/api.d.ts:453
Whether the node spans all monitors.
Inherited from
Section titled “Inherited from”visible
Section titled “visible”visible:
boolean
Defined in: client/api.d.ts:428
Node visibility.
