skip to Main Content

For Unity, how do I serialize a Json string file path and load it into a ScriptableObject asset like sprites?

//Json-------------------------- [ { "name": "Generic Ability", "icon": "Assets/Database/Images/default.png" }, { "name": "Another Ability", "icon": "Assets/Database/Images/another.png" } ] //Ability-------------------------- [System.Serializable] public class Ability { public string abilityName; public Sprite icon; } //AbilityDatabase-------------------------- using UnityEngine; using System.Collections.Generic; [CreateAssetMenu(fileName = "AbilityDatabase", menuName =…

VIEW QUESTION
Back To Top
Search