BZ易风

导航

 

对于函数参数的out类型参数,在lua的脚本中可以使用nil匹配函数输入参数

如:ColorUtility

 

lua中想获取out color可以这么写

local res, color = UnityEngine.ColorUtility.TryParseHtmlString("#DF0F08", nil)  --out参数位置用nil代替,color放在前面第二个位置接收out返回来的参数

 

posted on 2021-06-29 14:52  BZ易风  阅读(516)  评论(0编辑  收藏  举报