Back to Bevy

PlaneMeshBuilder, allow for different number of subdivisions in X and Z directions

release-content/migration-guides/plane3d_subdivisions_xz.md

0.18.1274 B
Original Source

It is now possible to assign a different number of subdivisions on the X and Z axis.

The subdivisions field of PlaneMeshBuilder has been split into subdivisions_x and subdivisions_z.

rust
// Before:
builder.subdivisions = 4
// After:
builder.subdivisions(4)