Navigation
API > API/Plugins > API/Plugins/USDStage > API/Plugins/USDStage/FUsdLevelSequenceHelper
Description
Adds the necessary tracks for a given prim to the level sequence. If bForceVisibilityTracks is true, will add visibility tracks even if this prim doesn't actually have timeSamples on its visibility attribute (use this when a parent does have animated visibility, and we need to "bake" that out to a dedicated visibility track so that the standalone LevelSequence asset behaves as expected). We'll check the prim for animated bounds and add bounds tracks, unless bHasAnimatedBounds already provides whether the prim has animated bounds or not.
| Name | AddPrim |
| Type | function |
| Header File | /Engine/Plugins/Importers/USDImporter/Source/USDStage/Public/USDLevelSequenceHelper.h |
| Include Path | #include "USDLevelSequenceHelper.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDStage/Private/USDLevelSequenceHelper.cpp |
void AddPrim
(
UUsdPrimTwin & PrimTwin,
bool bForceVisibilityTracks,
TOptional < bool > HasAnimatedBounds
)