I have a script that i want to store a large collection of sprites in and access them through out my game. I seen Resources.Load and I’m trying to use it but I think I’m doing something wrong.
Screen Shot:
Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Image_Game_Data : MonoBehaviour
{
public static Sprite _Ballon_Fly = Resources.Load<Sprite>("Sprites/sprite01");
}
Suggestions?