An attachment that displays a textured quadrilateral.
See Region attachments in the Spine User Guide.
Static variables
@:value(5)staticfinalinlineread onlyC1A:Int = 5
@:value(4)staticfinalinlineread onlyC1B:Int = 4
@:value(3)staticfinalinlineread onlyC1G:Int = 3
@:value(2)staticfinalinlineread onlyC1R:Int = 2
@:value(13)staticfinalinlineread onlyC2A:Int = 13
@:value(12)staticfinalinlineread onlyC2B:Int = 12
@:value(11)staticfinalinlineread onlyC2G:Int = 11
@:value(10)staticfinalinlineread onlyC2R:Int = 10
@:value(21)staticfinalinlineread onlyC3A:Int = 21
@:value(20)staticfinalinlineread onlyC3B:Int = 20
@:value(19)staticfinalinlineread onlyC3G:Int = 19
@:value(18)staticfinalinlineread onlyC3R:Int = 18
@:value(29)staticfinalinlineread onlyC4A:Int = 29
@:value(28)staticfinalinlineread onlyC4B:Int = 28
@:value(27)staticfinalinlineread onlyC4G:Int = 27
@:value(26)staticfinalinlineread onlyC4R:Int = 26
@:value(0)staticfinalinlineread onlyOX1:Int = 0
@:value(2)staticfinalinlineread onlyOX2:Int = 2
@:value(4)staticfinalinlineread onlyOX3:Int = 4
@:value(6)staticfinalinlineread onlyOX4:Int = 6
@:value(1)staticfinalinlineread onlyOY1:Int = 1
@:value(3)staticfinalinlineread onlyOY2:Int = 3
@:value(5)staticfinalinlineread onlyOY3:Int = 5
@:value(7)staticfinalinlineread onlyOY4:Int = 7
@:value(6)staticfinalinlineread onlyU1:Int = 6
@:value(14)staticfinalinlineread onlyU2:Int = 14
@:value(22)staticfinalinlineread onlyU3:Int = 22
@:value(30)staticfinalinlineread onlyU4:Int = 30
@:value(7)staticfinalinlineread onlyV1:Int = 7
@:value(15)staticfinalinlineread onlyV2:Int = 15
@:value(23)staticfinalinlineread onlyV3:Int = 23
@:value(31)staticfinalinlineread onlyV4:Int = 31
@:value(0)staticfinalinlineread onlyX1:Int = 0
@:value(8)staticfinalinlineread onlyX2:Int = 8
@:value(16)staticfinalinlineread onlyX3:Int = 16
@:value(24)staticfinalinlineread onlyX4:Int = 24
@:value(1)staticfinalinlineread onlyY1:Int = 1
@:value(9)staticfinalinlineread onlyY2:Int = 9
@:value(17)staticfinalinlineread onlyY3:Int = 17
@:value(25)staticfinalinlineread onlyY4:Int = 25
Constructor
Variables
@:value(new Color(1, 1, 1, 1))color:Color = new Color(1, 1, 1, 1)
The color to tint the region attachment.
@:value(0.0)height:Float = 0.0
The height of the region attachment in Spine.
@:value(Utils.newFloatArray(8))finaloffset:Array<Float> = Utils.newFloatArray(8)
For each of the 4 vertices, a pair of x,y
values that is the local position of the vertex.
See also:
The name of the texture region for this attachment.
@:value(1.0)scaleX:Float = 1.0
@:value(1.0)scaleY:Float = 1.0
@:value(Utils.newFloatArray(8))finaluvs:Array<Float> = Utils.newFloatArray(8)
@:value(0.0)width:Float = 0.0
The width of the region attachment in Spine.
@:value(0.0)x:Float = 0.0
@:value(0.0)y:Float = 0.0
Methods
computeWorldVertices(bone:Bone, worldVertices:Array<Float>, offset:Int, stride:Int):Void
Transforms the attachment's four vertices to world coordinates.
See World transforms in the Spine
Runtimes Guide.
Parameters:
worldVertices | The output world vertices. Must have a length >= offset + 8. |
---|
offset | The worldVertices index to begin writing values. |
---|
stride | The number of worldVertices entries between the value pairs written. |
---|
Calculates the offset
using the region settings. Must be called after changing region settings.
Inherited Variables
Inherited Methods