Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started