-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
meta里定义了:
<method name="op_UnaryNegation" GenericArgCount="0" ArgCount="1" Template="UnityEngine.Vector3.op_UnaryNegation({0})" > <arg type="UnityEngine.Vector3"> </arg> </method>
C#代码
Vector3 left = -owner.transform.right.normalized;
生成lua代码:
local left = - owner:gettransform():getright():getnormalized()
正确的应该是
local left = UnityEngine.Vector3.op_UnaryNegation(owner:gettransform():getright():getnormalized())
Metadata
Metadata
Assignees
Labels
No labels