コード例 #1
0
    public override void OnInspectorGUI()
    {
        Actuator actuatorScript = (Actuator)target;

        actuatorScript.ID = EditorGUILayout.IntField("ID", actuatorScript.ID);
        EditorGUILayout.LabelField("State", actuatorScript.getState().ToString());
    }