This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.U2D; | |
public class AtlasSpriteLoader : MonoBehaviour { | |
[SerializeField] private SpriteAtlas m_Atlas; | |
[SerializeField] private string m_SpriteName; | |
void Start() { | |
GetComponent<SpriteRenderer>().sprite = m_Atlas.GetSprite(m_SpriteName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x903e75689e5630cF02f7696a9077C9C862D838fe |