Files
beyond/Assets/ThirdParty/PlayMaker/Actions/Editor/SetPropertyEditor.cs
2024-11-20 15:21:28 +01:00

25 lines
750 B
C#

/*
namespace HutongGames.PlayMakerEditor
{
[CustomActionEditor(typeof (PlayMaker.Actions.SetProperty))]
public class SetPropertyAction : CustomActionEditor
{
private PlayMaker.Actions.SetProperty setPropertyAction;
public override void OnEnable()
{
// Temporary fix for bug in 1.8.1 with SetProperty actions created with new context menus
setPropertyAction = target as PlayMaker.Actions.SetProperty;
if (setPropertyAction != null) // should never be null!
{
setPropertyAction.targetProperty.setProperty = true;
}
}
public override bool OnGUI()
{
return DrawDefaultInspector();
}
}
}*/