INSA
  • Tutorials
  • Documentation
  • Api Documentation
  • Changelog
Show / Hide Table of Contents
  • Getting Started
    • Quickstart
  • Scenario
    • How to?
    • How to edit a scenario?
    • How to run a scenario?
    • How to create a sensor?
    • How to create an effector?
    • How to setup the engine?
  • Relation engine
    • How to create a type?
    • How to create a relation?
    • What are queries? How do queries work?
    • How to be notified when a relation is executed?
  • Unity tutorial
    • Introduction
    • Time for practice
    • Restricted scenario by script?
    • How to create the tutorial scene?
  • Highlight Manager
    • How to create a Highlight?

How to setup the scenario engine?

The scenario engine is meant to run the main scenario of your application and be unique to your scene.

Other scenarios can be executed on various game objects using the ScenarioRunner component. An example of scenario running on a game object is the TypeWithScenario component. See Run a scenario for more details.

In this example, it is expected you instanciated a Xareus prefab (or manually created a game object) with a ScenarioEngineKernel component

  • Select the game object within the scene. It must contains a Scenario Engine Kernel component.
  • This script has a field called Scenario. You must fill this field. You can either click the field, and browse to add your scenario file. Alternatively, you can open a windows explorer. Use the explorer to find the scenario file. Drag the file from the explorer into the Unity field. Another option is to open your main scenario in the scenario editor and click File => Set Current Scenario
Scenario setup in UnityEditor
INSA     IRISA     Inria     Ouest Valorisation Back to top