Interface ISpriteMapOptions
interface ISpriteMapOptions {
baseTile?: number;
colorMultiply?: Vector3;
flipU?: boolean;
frameRotationDirection?: SpriteMapFrameRotationDirection;
layerCount?: number;
maxAnimationFrames?: number;
outputPosition?: Vector3;
outputRotation?: Vector3;
outputSize?: Vector2;
stageSize?: Vector2;
}
baseTile?: number;
colorMultiply?: Vector3;
flipU?: boolean;
frameRotationDirection?: SpriteMapFrameRotationDirection;
layerCount?: number;
maxAnimationFrames?: number;
outputPosition?: Vector3;
outputRotation?: Vector3;
outputSize?: Vector2;
stageSize?: Vector2;
}
Properties
Optionalbase Tile
baseTile?: number
number cell index of the base tile when the system compiles.
Optionalcolor Multiply
Vector3 scalar of the global RGB values of the SpriteMap.
Optionalflip U
flipU?: boolean
boolean flip the sprite after its been repositioned by the framing data.
Optionalframe Rotation Direction
Rotation direction of the frame by 90 degrees. Applied when the the frame's "rotated" parameter is true. Default is CCW.
Optionallayer Count
layerCount?: number
number of layers that the system will reserve in resources.
Optionalmax Animation Frames
maxAnimationFrames?: number
number of max animation frames a single cell will reserve in resources.
Optionaloutput Position
Vector3 of the position of the output plane in World Units.
Optionaloutput Rotation
Vector3 of the rotation of the output plane.
Optionaloutput Size
Vector2 of the size of the output plane in World Units.
Optionalstage Size
Vector2 of the number of cells in the grid.
Defines the basic options interface of a SpriteMap