A handy Json Editor directly in the inspector to edit any serialized field with customizable serialization strategy. Source code available on purchase and can be further customized/improved to your liking.
How to Use:
- Add the [JsonEdit] attribute to a serialized field
- Hold Shift while hovering over the inspector field to reveal the {j} button (Can be changed in settings)
- Click on the {j} button to enable the json editor view
- Click on the {j} button again to disable the json editor view and save the new contents.
In Project Settings, you can change the color theme and serialization strategy under the category Json Edit Settings.
The standard unity json utility (UnityEngine.JsonUtility) is available through the JsonSerializeStrategy. However it doesn't work very well for most fields, it is highly recommended that you use NewtonsoftSerializeStrategy. To be able to see this strategy you must either:
- Import com.unity.nuget.newtonsoft-json
- Ensure Newtonsoft.Json is available in your project and add NEWTONSOFT_JSON to your Scripting Define Symbols under Project Settings/Player