SetIncludeInBuild(SpriteAtlas, bool)
Define if this sprite atlas's packed texture is included in the build with the Sprite after packing is done.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor
public static void SetIncludeInBuild(this SpriteAtlas spriteAtlas, bool value)
Parameters
Remarks
Include this to ensure that the sprite refers to the atlas's packed texture at runtime.
Conversely, the packed texture will not be in the build. It can be late bound to the sprite at runtime.