Header menu logo Nu

RegionAttachment Type

Attachment that displays a texture region.

Constructors

Constructor Description

RegionAttachment(name)

Full Usage: RegionAttachment(name)

Parameters:
    name : string

name : string

RegionAttachment(other)

Full Usage: RegionAttachment(other)

Parameters:

Copy constructor.

other : RegionAttachment

Instance members

Instance member Description

this.A

Full Usage: this.A

Modifiers: abstract

this.B

Full Usage: this.B

Modifiers: abstract

this.ComputeWorldVertices

Full Usage: this.ComputeWorldVertices

Parameters:
    slot : Slot
    worldVertices : float32[] - The output world vertices. Must have a length greater than or equal to offset + 8.
    offset : int - The worldVertices index to begin writing values.
    ?stride : int - The number of worldVertices entries between the value pairs written.

Transforms the attachment's four vertices to world coordinates. If the attachment has a RegionAttachment.Sequence the region may be changed.

slot : Slot
worldVertices : float32[]

The output world vertices. Must have a length greater than or equal to offset + 8.

offset : int

The worldVertices index to begin writing values.

?stride : int

The number of worldVertices entries between the value pairs written.

this.Copy

Full Usage: this.Copy

Returns: Attachment
Modifiers: abstract
Returns: Attachment

this.G

Full Usage: this.G

Modifiers: abstract

this.Height

Full Usage: this.Height

this.Offset

Full Usage: this.Offset

Returns: float32[]

For each of the 4 vertices, a pair of x,y values that is the local position of the vertex.

Returns: float32[]

this.Path

Full Usage: this.Path

Modifiers: abstract

this.R

Full Usage: this.R

Modifiers: abstract

this.Region

Full Usage: this.Region

Modifiers: abstract

this.Rotation

Full Usage: this.Rotation

this.ScaleX

Full Usage: this.ScaleX

this.ScaleY

Full Usage: this.ScaleY

this.Sequence

Full Usage: this.Sequence

Modifiers: abstract

this.UVs

Full Usage: this.UVs

Returns: float32[]
Returns: float32[]

this.UpdateRegion

Full Usage: this.UpdateRegion

Modifiers: abstract

Calculates the RegionAttachment.Offset and RegionAttachment.UVs using the region and the attachment's transform. Must be called if the region, the region's properties, or the transform are changed.

this.Width

Full Usage: this.Width

this.X

Full Usage: this.X

this.Y

Full Usage: this.Y

Type something to start searching.