Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientSceneInstantiateInfo Struct Reference

Imported scene instantiation attributes. More...

#include <RadientSceneImporter.h>

Public Attributes

const Char * Name = nullptr
 Optional name for the root entity created by the import.
RadientEntityID Parent = InvalidRadientEntityID
 Optional parent entity for the imported scene graph root.
RADIENT_ENTITY_FLAGS RootFlags = RADIENT_ENTITY_FLAG_VISIBLE
 Root entity flags.
RadientTransform RootTransform = {}
 Root entity local transform.
Uint32 SceneIndex = InvalidRadientSceneIndex
 Optional scene index to instantiate. InvalidRadientSceneIndex uses the asset default scene.
IRadientAnimationRegistry * pAnimationRegistry = nullptr

Detailed Description

Imported scene instantiation attributes.

Member Data Documentation

◆ pAnimationRegistry

IRadientAnimationRegistry* Diligent::RadientSceneInstantiateInfo::pAnimationRegistry = nullptr

Optional external animation registry associated with the destination scene. When provided, the importer attempts to compile each clip against its instantiated scene-node transforms and own visibility, corresponding skeleton poses, and per-node morph-target weight objects, then registers the resulting bindings with their scene instance. Binding and registration failures are logged and skipped, leaving the scene usable without the affected animations. Other currently unsupported targets remain available through the scene asset's clip catalog but are not registered. GetScene() must return the destination scene; otherwise, instantiation fails with RADIENT_STATUS_INVALID_ARGUMENT. The importer retains the registry while an asynchronous instantiation is pending. The caller is responsible for removing associations after later scene changes.