Optimization is key when creating games for large audiences. This plugin assists you in swiftly toggling properties such as CanCollide, CanQuery, CanTouch, Anchored, CastShadow, CollisionFidelity, and Material on or off for any number of objects.
This plugin uses Roact for UI. The interface is divided into the following components:
There is one helper module called GetAffectedObjects. This is simply a function with the following signature:
(predicate: (object: Instance) -> boolean) -> {Instance}
It is used by SingleAction and DualAction (here and here).
Feel free to extend the plugin to fit your needs, or just as a learning experience. ❤️