You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class TestTraceStack
{
public static void RunTest()
{
var s = HelloWorld.appdomain.GetCurrentStackTrace();//注释掉就不会有问题
UnityEngine.GameObject go = new UnityEngine.GameObject();
UnityEngine.Debug.Log(go.name);//报错,提示go是一个null
}
}
这个测试样例,为了取到appdomain,这里把HelloWorld.appdomain改成了静态属性。
The text was updated successfully, but these errors were encountered: