Getting width / height / depth of an instantiated node
Cocos
OCTOBER 8, 2023
Wow, I missed such critical part, was looking at getComponent(UITransform) but didn’t go forward and type in getBoundingBox, there is also computeAABB which I really need, thanks so much I’ve just checked the API, it was defined inside 2d rendering so I guess it would work if working with UI element. But since I’m creating some object in 3d so the getComponent(UITransfrom) is null, hence the getBoundingBox, and computeAABB is unavailable, I’m currently looking at the Mesh and MeshRenderer, but t
Let's personalize your content