VFXExpressionBakeCurve.cs 564 B

123456789101112131415161718192021
  1. using System;
  2. using System.Linq;
  3. using System.Runtime.CompilerServices;
  4. using UnityEngine;
  5. using UnityEngine.VFX;
  6. namespace UnityEditor.VFX
  7. {
  8. class VFXExpressionBakeCurve : VFXExpression
  9. {
  10. public VFXExpressionBakeCurve() : this(VFXValue<AnimationCurve>.Default)
  11. {
  12. }
  13. public VFXExpressionBakeCurve(VFXExpression curve) : base(Flags.InvalidOnGPU, new VFXExpression[1] { curve })
  14. {
  15. }
  16. sealed public override VFXExpressionOperation operation { get { return VFXExpressionOperation.BakeCurve; } }
  17. }
  18. }