pub trait AddScriptHost {
    fn add_script_host<T: ScriptHost, S: StageLabel>(
        &mut self,
        stage: S
    ) -> &mut Self; }
Expand description

Trait for app builder notation

Required Methods§

registers the given script host with your app, the given stage will contain systems handling script loading,re-loading, removal etc. This stage will also send events related to the script lifecycle. Any systems which need to run the same frame a script is loaded must run after this stage.

Implementations on Foreign Types§

Implementors§