Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom inspector trying to expose 'state' of battle at any time
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor(typeof(Battle))]
public class BattleInspector : Editor
{
public override void OnInspectorGUI()
{
var battle = (Battle)target;
EditorGUILayout.LabelField("State", battle.battleStateName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.