CCNode 重要属性:
m_obAnchorPoint = CCPointZero m_obposition = CCPointZero #"whole screen objects. like Scenes and Layers,should set m_bIgnoreAnchorPointForposition to true"m_bIgnoreAnchorPointForposition = falsem_obContentSize = CCSizeZero
cclayer 和 CCScene 继承与 CCNode
并更改了上述部分属性:
**cclayer:** m_bIgnoreAnchorPointForposition = true setAnchorPoint = ccp(0.5,0.5) m_obContentSize = winSize#cclayer加入了对外部事件的处理如触摸,重力,菜单按钮。#默认cclayer不处理外部事件 m_btouchEnabled(false),m_bAccelerometerEnabled(false),m_bKeypadEnabled(false),##CCScene:## m_bIgnoreAnchorPointForposition = true setAnchorPoint = ccp(0.5,0.5) m_obContentSize = winSize
CCScrollVIEw 继承自 cclayer ,则继承下来的属性又 锚点为m_obAnchorPoint = ccp(0.5 0.5) 并且ignoreAnchorPointForposition = true
总结以上是内存溢出为你收集整理的cocos2d CCScrollView 解析全部内容,希望文章能够帮你解决cocos2d CCScrollView 解析所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)