"Class Field Editor" is an Unity asset, implemented in the language of C#. The main task is to view and edit the fields of the class - the heir to MonoBehaviour in PlayMode mode. An additional option is the ability to save and download class field values using the JSON format.
The package presents an asset and an example of its use. Asset is a set of scripts, prefabs.
General scheme of "Class Field inspector" package:
General scheme prefab dependences
The main prefab is ClassFieldEditor.prefab. The object is created and placed on the scene using the command in the Unity Editor: "GameObjects -> UI -> Class Field Editor ". Prefab includes a component ClassFieldEditorScript(Script), which is used to control all other prefabs ClassFieldEditor.prefab their objects.
ClassFieldEditor can save the following types of fields:
ClassFieldEditor.prefab
This is the main prefab. It is placed on stage with the help of the GameObjects team->UI->Class Field Editor. The prefab includes the ClassFieldEditorScript(Script) component, which manages DataField, LoadPanel, SavePanel, and other object settings.
LoadPanel.prefab
The creation of this prefab is controlled by the ClassFieldEditor (Script) component in The ClassFieldEditor.prefab. It contains GameObjects: Dropdown - selects a downloadable file with field values for a particular class.
DataField.prefab
The creation of this prefab is controlled by the ClassFieldEditorScript(Script) component in the ClassFieldEditor.prefab. This auxiliary prefab is designed to create a basic class field visualization table using objects:
SavePanel.prefab
The creation of this prefab is controlled by the ClassFieldEditor (Script) component in the ClassFieldEditor prefab. Prefab is GameObjects: Button and Text - saves jSON field values.
General scheme of scripts
2. DataFieldScript.cs and DataPanelScript.cs
The scripts is a components of dataField and DataPanel, and is designed to create table elements that match the class field.
3. InpFieldScript.cs
The script controls the components of the "TMP_InputField." Designed to make it easier to visualize data editing.
4. LoadPanelScript.cs and SavePanelScript.cs
The scripts are components of LoadPanel.prefab and SavePanel.prefab. They are used to save and load the class fields.