How can i convert Objects to Scriptable objects or is there a better way to load Scriptable Objects out of the Resource folder?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class ItemDatabase : MonoBehaviour
{
public Object[] Items;
public Item items;
void Start()
{
Items = Resources.LoadAll("Items", typeof(Item));
foreach (var t in Items)
{
Debug.Log(t.name);
}
}
}