struct
FileNamefalseThe path to the sprite file to use.
SpriteSizeType | Tuple<SpriteSizeType, SpriteSizeType>trueThe width and height of the sprite. If this is a tuple, the first member of the tuple is the width and the second is the height. Otherwise the size is both width and height. Width and height may only be in the range of 0-4096.
SpriteSizeTypetrueMandatory if size is not defined.
Width of the picture in pixels, from 0-4096.
SpriteSizeTypetrueMandatory if size is not defined.
Height of the picture in pixels, from 0-4096.
SpriteSizeTypetrueHorizontal position of the sprite in the source file in pixels.
SpriteSizeTypetrueVertical position of the sprite in the source file in pixels.
Tuple<SpriteSizeType, SpriteSizeType>trueLoaded only when x and y are both 0. The first member of the tuple is x and the second is y.
booleantrueMinimal mode is entered when mod loading fails. You are in it when you see the gray box after (part of) the loading screen that tells you a mod error. Modders can ignore this property.
booleantrueWhether alpha should be pre-multiplied.
booleantrueIf true, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.