cocos3d中如何获取 width 和 height

2.x 升级过来的,不太会用啊

你好,可参考文档:
https://docs.cocos.com/creator/3.0/manual/zh/release-notes/upgrade-guide-v3.0.html#旧版本开发者快速上手

获取width: node.getComponent(UITransform).width

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。