SkyReal Documentation

  1. Accueil
  2. Docs
  3. SkyReal Documentation
  4. Advanced preparation using Unreal
  5. Advanced behavior using SkrController

Advanced behavior using SkrController

It’s possible inside the simulation to communicate between the map blueprints and SkyReal.

To do so, create a new blueprint (located under the simulation directory), and add the GetSkrController box (see bellow)

SkrController calls

With the SkrFrameworkConnector, it possible to:

Function Description
GetVRDeviceName Retrieve the current VR device recognize by SkyReal.
IsInVR Get a value indicating whether SkyReal is in VR mode or not.
SwitchToVR Force SkyReal to switch to VR.
GetControllerHitTest(…) Get the object pointed by the given controller.
GetControllerHitTests(…) Get the list of objects pointed by the given controller.
OnIsInVRStatusChanged Event called when SkyReal goes to VR or to desktop (2d) mode.
Change2DInterfaceVisibility(…) Set the visibility of each panels of the 2D interface. Warning this method should be called each time the user switch to 2D (using the OnIsInVRStatusChanged event)
IsIn2D Get a value indicating whether SkyReal is in 2D mode or not.
SwitchTo2D Force SkyReal to switch to 2D.
GetVideosPath Get the full video path.
AddEnvironement(…) Add an environnement asset to the current list of available environments.
RemoveEnvironement(…) Remove an environnement asset to the current list of available environments.
LoadEnvironementFromClass(…) Force to load an environment from its name.
LoadEnvironementFromName(…) Force to load an environment from its name.
GetCurrentEnvironment Get a reference to the current environment.
GetAllSkrViews Get all the views available in the simulation.
NavigateToView(…) Force the current user to navigate to one of the simulation view.
FitObjects(…) Fit the user view to a specific set of objects.
GetCurrentSelection Gets the current user selection.
SetCurrentSelection(…) Sets the current user selection.

Cet article vous a-t-il été utile ? Oui Non

Comment pouvons-nous aider ?