Skip to content

Sensors

Using additional sensors, you can get a detailed snapshot of the player's physical state. While we don't support specific sensors, we provide a simple API to record sensor data and display this data on SceneExplorer.

If there is sensor data available for a SceneExplorer session, it can be accessed by the sensors tab on the navigation bar.

Graph Display

Code Reference

Recording Sensor Data

Sensors record float values. Please get in touch if you require other data types.

sensor blueprint

void APlayerController::PlayerTick(float DeltaTime)
{
    //...

    TSharedPtr<FAnalyticsProviderCognitiveVR> provider;
    provider = FAnalyticsCognitiveVR::Get().GetCognitiveVRProvider();

    float oxygen = FMath::FRandRange(75.0, 100.0);
    provider->sensors->RecordSensor("Heart.Blood Oxygen", oxygen);

    float heartrate = FMath::FRandRange(60.0, 100.0);
    provider->sensors->RecordSensor("Heart.EKG", heartrate);
}

Sensors Namespaces

Notice the period in the middle of the Sensor names above. This is an optional feature to group related sensor data. In SceneExplorer, the Sensor selector will appear like this:

Namespacing Sensors