我统一遇到了这个错误
Assets/Source/LuaWrap/SecurityWrap.cs(113,37): error CS0117: `UnityEngine.Security' does not contain a definition for `GetChainOfTrustValue'
这是我的代码
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int GetChainOfTrustValue(IntPtr L)
{
LuaScriptMgr.CheckArgsCount(L, 1);
string arg0 = LuaScriptMgr.GetLuaString(L, 1);
string o = Security.GetChainOfTrustValue(arg0);
LuaScriptMgr.Push(L, o);
return 1;
}
但是实际上Security类中有GetChainOfTrustValue:
namespace UnityEngine
{
public sealed class Security
{
//
// Static Methods
//
[SecuritySafeCritical]
public static string GetChainOfTrustValue (string name)
{
...
这是怎么回事?