'depth'에 해당되는 글 1건

  1. 2013.10.30 [cocos2d-html5]오브젝트의 depth 알아내기 & depth 변경
html52013. 10. 30. 11:44

#오브젝트의 깊이 

var dep = this.circle.getZOrder();


#깊이 변경

var box = new boxLayer();

this.addChild(box);

this.reorderChild(box, dep - 1);


#가장 아래쪽의 depth 로 변경

this.reorderChild(box, -1);

Posted by 차돌이라네