RegionAttachment Type
Attachment that displays a texture region.
Constructors
Constructor | Description |
Full Usage:
RegionAttachment(name)
Parameters:
string
|
|
|
Copy constructor.
|
Instance members
Instance member | Description |
Full Usage:
this.A
Modifiers: abstract |
|
Full Usage:
this.B
Modifiers: abstract |
|
Full Usage:
this.ComputeWorldVertices
Parameters:
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.
|
|
|
Full Usage:
this.G
Modifiers: abstract |
|
Full Usage:
this.Height
|
|
Full Usage:
this.Offset
Returns: float32[]
|
For each of the 4 vertices, a pair of
|
Full Usage:
this.Path
Modifiers: abstract |
|
Full Usage:
this.R
Modifiers: abstract |
|
Full Usage:
this.Region
Modifiers: abstract |
|
Full Usage:
this.Rotation
|
|
Full Usage:
this.ScaleX
|
|
Full Usage:
this.ScaleY
|
|
Full Usage:
this.Sequence
Modifiers: abstract |
|
Full Usage:
this.UVs
Returns: float32[]
|
|
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. |
Full Usage:
this.Width
|
|
Full Usage:
this.X
|
|
Full Usage:
this.Y
|
|