AnimClipFrameData
此内容尚不支持你的语言。
Defined in: animation/AnimClipLoader.ts:64
Properties
Section titled “Properties”atlasFrame?
Section titled “atlasFrame?”
optionalatlasFrame?:object
Defined in: animation/AnimClipLoader.ts:88
height
Section titled “height”height:
number
pageHeight
Section titled “pageHeight”pageHeight:
number
pageWidth
Section titled “pageWidth”pageWidth:
number
width:
number
x:
number
y:
number
optionalcell?:number
Defined in: animation/AnimClipLoader.ts:68
Sheet cell index (row-major, 0-based); requires a sheet section.
duration?
Section titled “duration?”
optionalduration?:number
Defined in: animation/AnimClipLoader.ts:69
offset?
Section titled “offset?”
optionaloffset?:AnimClipVec2
Defined in: animation/AnimClipLoader.ts:87
Shifts this frame’s artwork away from the clip’s anchor, in size’s units, and folded into the frame’s pivot at load. Units rather than a normalized pivot because the same offset is the same visual shift on frames of any size — a pivot is not.
pivot?
Section titled “pivot?”
optionalpivot?:AnimClipPivotData
Defined in: animation/AnimClipLoader.ts:75
Anchor override for this frame; absent = the clip’s pivot. Added in format
1.4 — this is what keeps a character’s feet planted when the artwork shifts
inside the cell from frame to frame.
optionalsize?:AnimClipVec2
Defined in: animation/AnimClipLoader.ts:80
What this frame draws at. Absent = its own natural size (its sheet cell, or its texture’s pixels), which is what an author almost always means.
texture?
Section titled “texture?”
optionaltexture?:string
Defined in: animation/AnimClipLoader.ts:66
Per-frame texture ref; absent on sheet-cell frames.