Trigger when a SpriteAtlas is registered via invoking the callback in SpriteAtlasManager.atlasRequested.
no example available in JavaScript
using UnityEngine; using UnityEngine.U2D;
public class AtlasRegistrationListener : MonoBehaviour { void OnEnable() { SpriteAtlasManager.atlasRegistered += AtlasRegistered; }
void OnDisable() { SpriteAtlasManager.atlasRegistered -= AtlasRegistered; }
void AtlasRegistered(SpriteAtlas spriteAtlas) { Debug.LogFormat("Registered {0}.", spriteAtlas.name); } }
See Also: SpriteAtlasManager.atlasRegistered.