27 lines
562 B
C#
27 lines
562 B
C#
// (c) Copyright HutongGames, LLC 2010-2016. All rights reserved.
|
|
|
|
using HutongGames.PlayMaker.Actions;
|
|
using HutongGames.PlayMakerEditor;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
|
|
[CustomActionEditor(typeof(QuaternionRotateTowards))]
|
|
public class QuaternionRotateTowardsCustomEditor : QuaternionCustomEditorBase
|
|
{
|
|
|
|
public override bool OnGUI()
|
|
{
|
|
EditField("fromQuaternion");
|
|
EditField("toQuaternion");
|
|
EditField("maxDegreesDelta");
|
|
EditField("storeResult");
|
|
|
|
bool changed = EditEveryFrameField();
|
|
|
|
return GUI.changed || changed;
|
|
}
|
|
|
|
|
|
}
|