chrisgregan
9 years ago
1 changed files with 0 additions and 38 deletions
@ -1,38 +0,0 @@ |
|||||||
using UnityEditor; |
|
||||||
using UnityEngine; |
|
||||||
using System.Collections; |
|
||||||
using System.Collections.Generic; |
|
||||||
|
|
||||||
namespace Fungus |
|
||||||
{ |
|
||||||
/* |
|
||||||
[CustomEditor (typeof(SendEvent))] |
|
||||||
public class SendEventEditor : CommandEditor |
|
||||||
{ |
|
||||||
protected SerializedProperty targetEventProp; |
|
||||||
protected SerializedProperty stopCurrentFlowchartProp; |
|
||||||
|
|
||||||
protected virtual void OnEnable() |
|
||||||
{ |
|
||||||
targetEventProp = serializedObject.FindProperty("targetEvent"); |
|
||||||
stopCurrentFlowchartProp = serializedObject.FindProperty("stopCurrentFlowchart"); |
|
||||||
} |
|
||||||
|
|
||||||
public override void DrawCommandGUI() |
|
||||||
{ |
|
||||||
// For some reason the serializedObject has already been disposed by the time this method is called |
|
||||||
// The workaround is to acquire a new serializedObject and find the targetEvent property every time. |
|
||||||
// This could be a bug in the Unity 4.6 beta so try to aquire the property in OnEnable() again some time. |
|
||||||
|
|
||||||
serializedObject.Update(); |
|
||||||
|
|
||||||
serializedObject.Update(); |
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(targetEventProp); |
|
||||||
EditorGUILayout.PropertyField(stopCurrentFlowchartProp); |
|
||||||
|
|
||||||
serializedObject.ApplyModifiedProperties(); |
|
||||||
} |
|
||||||
} |
|
||||||
*/ |
|
||||||
} |
|
Loading…
Reference in new issue