Spriteshape collider Update Type?

Hi!

I am making a physics based game in which I modify the SpriteShape at runtime.
The shape uses an EdgeCollider2D. Since, it’s a physics based game, I want to update the collider in FixedUpdate, but looking at the SpriteShapeController.cs, the collider is being Baked in LateUpdate

My question, is it possible to somehow change the Baking in FixedUpdate?

And can I get access to m_ColliderData so I can use it to create my own collider and reduce garbage collection?I think for this if I can get a utility method to interpolate between two spline points, that will work as well

Thanks!

Its possible to access the colliderdata by calling edgeCollider.points or polygonCollider.points directly. Please check BakeCollider() in SpriteShapeController.cs
If you want to bake custom physics data, please disable auto-update collider and use the same API above to set custom points. Thanks.