namespace UnityEditor.VFX.Operator { [VFXHelpURL("Operator-SquareRoot")] [VFXInfo(category = "Math/Arithmetic")] class SquareRoot : VFXOperatorNumericUniform { public class InputProperties { public float x = 0.0f; } protected override sealed string operatorName { get { return "Square Root"; } } protected override sealed ValidTypeRule typeFilter { get { return ValidTypeRule.allowEverythingExceptIntegerAndDirection; } } protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression) { return new[] { VFXOperatorUtility.Sqrt(inputExpression[0]) }; } } }