文档

Unity Engine

Unity Engine

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

public static void SetIncludeInBuild(this SpriteAtlas spriteAtlas, bool value)

Parameters

spriteAtlas


value

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.