Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

IPackerPolicy

Namespace: UnityEditor.Sprites

/

Description

Sprite packing policy interface. Provide a custom implementation to control which Sprites go into which atlases.

Functions

GetVersionReturn the version of your policy. Sprite Packer needs to know if atlas grouping logic changed.
OnGroupAtlasesImplement custom atlas grouping here.