ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
357 stars 81 forks source link

不要轻易使用( DontDestroyOnLoad) #84

Closed funylion closed 5 years ago

funylion commented 5 years ago

写中文应该看得懂吧,这已经给我带来了很多麻烦。 Pointer3DInputModule if (Active) { DontDestroyOnLoad(instance.gameObject); }

chengnay commented 5 years ago

@funylion 請問是甚麼情況下遇到麻煩? 可以補充說明一下嗎? 謝謝!

funylion commented 5 years ago

default (如图所示,我不知道为什么它自己会自动添加一个然后跟我原来场景的EventSystem冲突了,导致里面的UI功能失效。这个原本不是问题,不过在当我允许它重新载入场景的时候就发生了。我花了很长的时间去寻找,最后发现是由于多出了一个EventSystem。) As shown in the figure, I don't know why it automatically adds one and then conflicts with EventSystem in my original scene, resulting in the failure of UI functions. This was not a problem, but it happened when I allowed it to reload the scene. I spent a long time looking for it, and finally found out that it was due to the addition of an Event System.

chengnay commented 5 years ago

We will fix this in next release, thanks for reporting!

funylion commented 5 years ago

You're sure it's a BUG.Not only that, but it's also a probabilistic event.So it took me quite a long time to find it.(==!)