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.
 
 
 
 
 

28 lines
901 B

using UnityEngine;
using UnityEngine.VFX.Utility;
namespace UnityEditor.VFX.Utility
{
[CustomEditor(typeof(VFXOutputEventUnityEvent))]
class VFXOutputEventUnityEventEditor : VFXOutputEventHandlerEditor
{
SerializedProperty m_OnEvent;
protected override void OnEnable()
{
base.OnEnable();
m_OnEvent = serializedObject.FindProperty(nameof(VFXOutputEventUnityEvent.onEvent));
}
public override void OnInspectorGUI()
{
serializedObject.Update();
EditorGUI.BeginChangeCheck();
DrawOutputEventProperties();
EditorGUILayout.PropertyField(m_OnEvent);
HelpBox("Attribute Usage", "VFX Attributes are not used for this Output Event Handler");
if (EditorGUI.EndChangeCheck())
serializedObject.ApplyModifiedProperties();
}
}
}