An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

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 stopCurrentScriptProp;
protected virtual void OnEnable()
{
targetEventProp = serializedObject.FindProperty("targetEvent");
stopCurrentScriptProp = serializedObject.FindProperty("stopCurrentScript");
}
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(stopCurrentScriptProp);
serializedObject.ApplyModifiedProperties();
}
}
*/
}