#.set() for multiple plugins

1 messages · Page 1 of 1 (latest)

trim gate
#

I know I can use set() to define values for plugins like add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest())), but I couldn't find a way to set for multiple plugins. Can someone help me?

open junco
#

.set exists for PluginGroup, not all Plugins are PluginGroups

trim gate
#

I'm using a PluginGroup, the DefaultPlugins. What I'm trying to do is set the ImagePlugin to default_nearest() and configure the WindowPlugin (name, size, etc).

open junco
#

did you import PluginGroup?

use bevy::app::PluginGroup;
#

it should be on prelude though

summer stratus
#

Iirc you can chain set()