Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ScriptablePacker

ScriptablePacker Interface. Provides a custom implementation to pack sprites into textures. This is the Scriptable Packer interface.
Read time 4 minutesLast updated 3 days ago

Definition

public abstract class ScriptablePacker : ScriptableObject

Methods

Method

Description

DisposeHelper function to cleanup native arrays of PackerData struct.
FitFunction to query where the Sprites will be packed in an Atlas without generating textures. Used for tools and previews.
PackAllows custom implementation to pack sprites into textures.

Structs

Struct

Description

ScriptablePacker.PackerDataA struct containing input data to pack sprites.
ScriptablePacker.SpriteDataA struct containing sprite specific data to pack sprites.
ScriptablePacker.SpritePackA struct that contains packing information of the sprite to Atlas.
ScriptablePacker.TextureDataTexture data of a specific sprite useful to get source pixels in textureData array.

Enums

Enum

Description

ScriptablePacker.PackTransformIndicates if the Sprite is rotated when packed to SpriteAtlas.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.