不同的UILayer之间可设置不同的优先级,这样可以禁止其它层的按钮点击事件。
UILayer * m_pColorUILayer = UILayer::create();
m_pPanelUILayer->setTouchPriority(-200);//设置触摸优先级
this->addChild(m_pColorUILayer,10);
不同的UILayer之间可设置不同的优先级,这样可以禁止其它层的按钮点击事件。
UILayer * m_pColorUILayer = UILayer::create();
m_pPanelUILayer->setTouchPriority(-200);//设置触摸优先级
this->addChild(m_pColorUILayer,10);