- 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
27 lines
573 B
C#
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 () {
|
|
|
|
}
|
|
}
|