You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
806 B

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]) };
}
}
}