ArabDesert/Assets/harry_t/Editor/ht8b_inspector.cs

23 lines
476 B
C#
Raw Permalink Normal View History

2024-05-25 09:10:35 +03:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(quest_stuff))]
public class quest_stuff_inspector: Editor
{
public override void OnInspectorGUI()
{
quest_stuff qst = (quest_stuff)target;
quest_stuff.DrawQuestStuffGUI( ref qst.data );
if( GUI.changed )
{
serializedObject.ApplyModifiedProperties();
EditorUtility.SetDirty( qst );
}
}
}