diff --git a/Assets/UdonSharp/Editor/UdonSharpASTVisitor.cs b/Assets/UdonSharp/Editor/UdonSharpASTVisitor.cs index b8583f73..21d66107 100644 --- a/Assets/UdonSharp/Editor/UdonSharpASTVisitor.cs +++ b/Assets/UdonSharp/Editor/UdonSharpASTVisitor.cs @@ -928,6 +928,8 @@ private MethodInfo[] GetOperators(System.Type type, BuiltinOperatorType builtinO string operatorName = System.Enum.GetName(typeof(BuiltinOperatorType), builtinOperatorType); if (builtinOperatorType == BuiltinOperatorType.Multiplication) operatorName = "Multiply"; // Udon breaks standard naming with its multiplication overrides on base types + else if (builtinOperatorType == BuiltinOperatorType.UnaryMinus) + operatorName = "UnaryNegation"; operatorName = $"op_{operatorName}";