Unity Event.current是空引用,只有s_Current可用

时间:2015-05-14 05:09:19

标签: events unity3d

Event e = Event.current;

这个编译。但是它在运行时提供了一个空引用。

使用我找到的调试器

Event e = Event.s_Current; // is ok
Event e = Event.s_MasterEvent; // both these exist 

这些对象存在并且具有我想要的东西,但这不会编译。

我正在使用unity 5.0.1f1 Personal。 Heeelp拜托!

1 个答案:

答案 0 :(得分:0)