Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

.modernator rico345100

💭
I may be slow to respond.
View GitHub Profile
@rico345100
rico345100 / AtlasSpriteLoader.cs
Created Jul 9, 2020
Simple Unity C# Script for using generated Atlas from Unity Sprite Atlas.
View AtlasSpriteLoader.cs
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);
}
View testcoins_rinkeby.txt
0x903e75689e5630cF02f7696a9077C9C862D838fe
You can’t perform that action at this time.