using System; using System.Collections.Generic; using UnityEngine; namespace UnityEditor.VFX.Block { //[VFXInfo(category = "Implicit")] //There's no way the user can meaningfully interact with them. class Age : VFXBlock { public override string name { get { return "Age"; } } public override VFXContextType compatibleContexts { get { return VFXContextType.Update; } } public override VFXDataType compatibleData { get { return VFXDataType.Particle; } } public override IEnumerable attributes { get { yield return new VFXAttributeInfo(VFXAttribute.Age, VFXAttributeMode.ReadWrite); } } public override IEnumerable parameters { get { yield return new VFXNamedExpression(VFXBuiltInExpression.DeltaTime, "deltaTime"); } } public override string source { get { return "age += deltaTime;"; } } } }