Scene metadata usage examples
Complete scene metadata setups for training simulations, industrial drills, military bases, and runtime environment updates in Unreal Engine.
Example 1: Medical training simulation — anatomy lab
Setup
Name
Description
Example 2: Industrial safety drill — phase-based object awareness
Setup
// C++ — call on the chatbot component when transitioning to a new drill phase
void ASafetyDrillManager::LoadPhase(int32 PhaseIndex)
{
// Remove all objects from the previous phase
ChatbotComponent->ClearObjects(false);
// Add only the props for the current phase
const TArray<FConvaiObjectEntry>& PhaseEntries = PhaseProps[PhaseIndex];
for (int32 i = 0; i < PhaseEntries.Num(); ++i)
{
bool bFlush = (i == PhaseEntries.Num() - 1); // flush on last entry
ChatbotComponent->AddObject(PhaseEntries[i], bFlush);
}
}Example 3: Military simulation — forward operating base with live gate state
Setup
Name
Description
Example 4: Tracking an enum with per-value descriptions
Setup
Value
Description
Example 5: Dynamically populating the environment at session start
Setup
Example 6: Disabling proximity state for background props
Setup
Next steps
Troubleshoot scene metadataScene metadata component referenceHow scene metadata worksManaging the environment at runtimeLast updated
Was this helpful?