Jimmy Tremblay-Bernier d480e58ec3 Project created and bunch of setup
- Imported a lot of assets to create the world (will need to be cleaned later on)
- Imported all the packages needed and wanted for the project
- Configure the loading pipeline for the game using SOAP scriptable objects events
- Added the scenes to the build
- Partially converted the assets to URP
2023-10-13 15:56:32 -04:00

27 lines
573 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class IconPreview : MonoBehaviour {
public Sprite[] icons;
GameObject icon;
// Use this for initialization
void Awake () {
for (int i = 0; i < icons.Length; i++) {
icon = new GameObject ("icon" + i);
icon.transform.SetParent(this.gameObject.transform);
icon.AddComponent<RectTransform> ();
icon.AddComponent<Image> ();
icon.GetComponent<Image> ().sprite = icons [i];
}
}
// Update is called once per frame
void Update () {
}
}