fgm24/Assets/Scripts/Utilities/NetworkID_Inspector.cs

17 lines
301 B
C#
Raw Normal View History

#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(NetworkID))]
public class NetworkID_Inspector : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
EditorGUILayout.LabelField($"ID: {(target as NetworkID).ID}");
}
}
#endif