EngineProvider
EngineProvider
is a component that provides the engine context to the script. It is required to be used in order to use the engine context.
Syntax
<EngineProvider params={params}>{children}</EngineProvider>
Parameters
Name | Type | Description |
---|---|---|
params | EngineParams | The engine parameters. |
Example
const Provider = () => {
return (
<EngineProvider params={{name: 'My Script'}}>
{/* your script logic goes here */}
</EngineProvider>
);
};
Available on: Client Server