using UnityEngine; namespace UnityEditor.VFX.Operator { [VFXHelpURL("Operator-LogicNand")] [VFXInfo(name = "Nand", category = "Logic")] class LogicalNand : VFXOperator { override public string name { get { return "Nand"; } } public class InputProperties { static public bool FallbackValue = false; [Tooltip("Sets the first operand.")] public bool a = FallbackValue; [Tooltip("Sets the second operand.")] public bool b = FallbackValue; } public class OutputProperties { [Tooltip("Outputs false if both operands are true. Otherwise, outputs true.")] public bool o = false; } protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression) { return new[] { new VFXExpressionLogicalNot(new VFXExpressionLogicalAnd(inputExpression[0], inputExpression[1])) }; } } }