using UnityEngine; namespace UnityEditor.VFX.Operator { [VFXHelpURL("Operator-LogicNot")] [VFXInfo(name = "Not", category = "Logic")] class LogicalNot : VFXOperator { override public string name { get { return "Not"; } } public class InputProperties { static public bool FallbackValue = false; [Tooltip("Sets the operand.")] public bool a = FallbackValue; } public class OutputProperties { [Tooltip("Outputs the opposite of the operand.")] public bool o = false; } protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression) { return new[] { new VFXExpressionLogicalNot(inputExpression[0]) }; } } }