风过无痕,生命如烟

每个人生下来都是天使,不过这个世界上也存在着恶魔。恶魔是天使变的,因为这个世界充满了诱惑。

导航

使用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 on 2012-03-31 14:57  hyamw  阅读(1836)  评论(0编辑  收藏  举报