文档

Unity Engine

Unity Engine

SetIncludeInBuild(bool)

Defines if the SpriteAtlas 's packed Textures that the Importer generates are included in the build with the Sprite after packing is done.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. SetIncludeInBuild is no longer supported and will be removed. Use SpriteAtlasImporter.SetIncludeInBuild instead.
public void SetIncludeInBuild(bool value)

Parameters

value

Remarks

Include this to ensure that the Sprite refers to the Atlas's packed Textures at run time.If the method is not included, then the packed Texture is not included in the build. The Texture can be late bound to the Sprite at run time.