Function fyrox_scripts::register

source ยท
pub fn register(container: &ScriptConstructorContainer)
Expand description

Registers every script from the crate in the given constructor container. Use it, if you want to register all available scripts at once. Typical usage could be like this:

  // This is PluginConstructor::register method of your GameConstructor.
  fn register(&self, context: PluginRegistrationContext) {
      fyrox_scripts::register(&context.serialization_context.script_constructors)
  }