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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!