Trigger when a SpriteAtlas is registered via invoking the callback in SpriteAtlasManager.atlasRequested.
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); } }
Additional resources: SpriteAtlasManager.atlasRegistered.