Version: 2023.1
言語: 日本語

SpriteAtlasAsset

class in UnityEditor.U2D

/

継承:Object

マニュアルに切り替える

説明

SpriteAtlasAsset stores inputs for generating SpriteAtlas and generates atlas textures on Import.

変数

isVariantChecks whether the Sprite Atlas Importer set the Sprite Atlas as a Variant.

Public 関数

AddAdd an array of Assets to the packable objects list.
GetMasterAtlasGets the Master Sprite Atlas for the given Variant Sprite Atlas.
RemoveRemoves objects from the Atlas's packable objects list.
SetIsVariantSets whether this Sprite Atlas is a Variant or not.
SetMasterAtlasSets an Atlas to be the Master Atlas.
SetScriptablePackerSets the ScriptablePacker ScriptableObject to SpriteAtlasAsset so custom packing can be implemented.

Static 関数

LoadLoads SpriteAtlasAsset at the given path. File extension of SpriteAtlasAsset is *.spriteatlasv2.
SaveSaves SpriteAtlasAsset to disk. File extension of SpriteAtlasAsset is *.spriteatlasv2.

継承メンバー

変数

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。