using UnityEditor; using UnityEngine; using VketCloudGUITools.Runtime; using VketCloudGUITools.Serialization; namespace VketCloudGUITools.Editor { [CustomEditor(typeof(VCHtml))] public class VCHtmlInspector : VCGUIItemBehaviourInspector { protected override void OnEnable() { base.OnEnable(); } public override void OnInspectorGUI() { serializedObject.Update(); EditorGUI.BeginChangeCheck(); var html = (VCHtml)target; var FontSize = EditorGUILayout.IntField("Font Size",html.FontSize); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(target, "Change HTML FontSize"); html.FontSize = FontSize; } serializedObject.ApplyModifiedProperties(); } } }