Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using UnityEngine;
using UnityEditor;
using System.Collections;
using AC;
[CustomEditor(typeof(AC_Trigger))]
[System.Serializable]
public class AC_TriggerEditor : CutsceneEditor
{
private string[] Options = { "On enter", "Continuous", "On exit" };
public override void OnInspectorGUI()
{
AC_Trigger _target = (AC_Trigger) target;
EditorGUILayout.BeginVertical ("Button");
EditorGUILayout.LabelField ("Trigger properties", EditorStyles.boldLabel);
_target.actionListType = (ActionListType) EditorGUILayout.EnumPopup ("When running:", _target.actionListType);
_target.triggerType = EditorGUILayout.Popup ("Trigger type:", _target.triggerType, Options);
EditorGUILayout.EndVertical ();
DrawSharedElements ();
if (GUI.changed)
{
EditorUtility.SetDirty (_target);
}
}
}
|
Revision |
Author |
Commited |
Message |
83
|
FMMortaroli
|
Tue 13 May, 2014 11:32:51 +0000 |
|