Collider size is not changing dynamically when I am trying to resize collider by code

Collider size is not changing dynamically when I am trying to resize the collider by code. is there any other way to do it?
Capture1

Capture3
when I tried to increase size of box collider by code , i was not increasing

I can ask engineering to have a look. What version of Creator are you using?

I am using the 3.4.1 version of cocos creater

try this:


hi Koei, I tried your logic but still, it does not increasing collider size dynamically when I am increasing it by code, collider size showing size(1,1) b default
Capture4
Capture5

I attached a demo project here
NewProject_3.zip (1.3 MB)
, can you please do it in this project


image
you need to call this function to apply current changes to collider, this will regenerate inner box2d fixtures.

So according to this we can change the size of a Box Collider.
But How do we dynamically generate points for a Mesh Collider during runtime?