Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

.modernator rico345100

I may be slow to respond.
View GitHub Profile
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
You can’t perform that action at this time.