behaviac icon indicating copy to clipboard operation
behaviac copied to clipboard

生成C#代码,如果method使用了引用参数(ref),并且设置该参数为self定义的一个property,那么生成的代码有bug

Open LagField opened this issue 7 years ago • 0 comments

如果某个方法将参数设置为引用(使用ref关键字),然后编辑行为树时,传入的是agent自定义的一个property,那么生成的这个方法的代码将会是 ref (我定义的类型xxx)AgentMetaVisitor.GetProperty(pAgent, "Property的名字").

然而c#不支持这种ref的使用方法,所以代码报错了

LagField avatar Jan 04 '19 02:01 LagField