Question: I'm close but how do I fix this JSON script trying to save JSON in my scene in Unity here is a copy of my
I'm close but how do I fix this JSON script trying to save JSON in my scene in Unity here is a copy of my C#:
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class JSON : MonoBehaviour { public void SaveAsJSON() { Save save = CreateSaveGameObject(); string json = JsonUtility.ToJson(save); Debug.Log("Saving as JSON: " + json); Save save = JsonUtility.FromJson(json); } } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
