View unanswered posts | View active topics It is currently 2021-12-03 6:26



Reply to topic  [ 2 posts ] 
 如何设置画布移动 
Author Message
初级会员

Joined: 2017-12-04 9:31
Posts: 131
Post 如何设置画布移动
如何让画布 向左或向下移动;
比如一个node在最左上面,想让它通过画布移动到中间;
需求是:点击第一层某节点,找到对应第二层的元素且能让该元素居屏幕中间


2021-04-21 19:06
Profile
TWaver开发组
User avatar

Joined: 2017-02-22 10:01
Posts: 485
Post Re: 如何设置画布移动
试试network.panToCenter();
还有一种就是设置network得viewRect范围,让网元居中显示。


2021-04-22 10:04
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron