使用Unity3D时,UIScrollView不滚动问题的解决方法

同时使用Unity 3D和iOS的UIScrollView会发现UIScrollView经常莫名其妙的不能滚动了

在Unity 3D的论坛里找到解决方法:http://forum.unity3d.com/threads/100066-UIScrollView-bugs-out-when-drawn-over-Unity.

 

 

 

The solution is actually simple, as described here:
http://unity3d.com/support/documenta...-MainLoop.html

in appcontroller.mm disable CADDisplayLink by setting:
#define USE_DISPLAY_LINK_IF_AVAILABLE 0
and also switch it to use NSTimer by setting:
#define MAIN_LOOP_TYPE NSTIMER_BASED_LOOP
//#define MAIN_LOOP_TYPE THREAD_BASED_LOOP
//#define MAIN_LOOP_TYPE EVENT_PUMP_BASED_LOOP

posted @ 2012-04-17 17:23  渡蓝  阅读(1534)  评论(0编辑  收藏  举报