first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
|
||||
[Category("✫ Blackboard")]
|
||||
public class SampleCurve : ActionTask
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<AnimationCurve> curve;
|
||||
[SliderField(0, 1)]
|
||||
public BBParameter<float> sampleAt;
|
||||
|
||||
[BlackboardOnly]
|
||||
public BBParameter<float> saveAs;
|
||||
|
||||
protected override void OnExecute() {
|
||||
|
||||
saveAs.value = curve.value.Evaluate(sampleAt.value);
|
||||
EndAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user