Closed ElhamAryanpur closed 3 months ago
Object methods should return a &mut reference so that chained setters could work.
&mut
example of potential synctax:
engine.objects.get_mut("object name").set_scale(1f32,1f32,1f32).set_position(100f32,100f32,100f32);
This helps lessen the boilerplate and will come at no cost to the current API syntax.
This was originally proposed by @bourbakas on Discord server
@bourbakas
Object methods should return a
&mut
reference so that chained setters could work.example of potential synctax:
This helps lessen the boilerplate and will come at no cost to the current API syntax.
This was originally proposed by
@bourbakas
on Discord server