Navigation
API > API/Plugins > API/Plugins/USDExporter > API/Plugins/USDExporter/UUsdConversionBlueprintLibrary
Description
Removes all the prim specs for Prim on the given Layer.
This function is useful in case the prim is inside a variant set: In that case, just calling FUsdStage::RemovePrim() will attempt to remove the "/Root/Example/Child", which wouldn't remove the "/Root{Varset=Var}Example/Child" spec, meaning the prim may still be left on the stage. Note that it's even possible to have both of those specs at the same time: for example when we have a prim inside a variant set, but outside of it we have overrides to the same prim. This function will remove both.
| Name | RemoveAllPrimSpecs |
| Type | function |
| Header File | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Public/USDConversionBlueprintLibrary.h |
| Include Path | #include "USDConversionBlueprintLibrary.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Private/USDConversionBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="USD|Prim utils")
static void RemoveAllPrimSpecs
(
const FString & StageRootLayer,
const FString & PrimPath,
const FString & TargetLayer
)
Parameters
| Name | Remarks |
|---|---|
| StageRootLayer | Path to the root layer of the stage from which we should fetch the Prims |
| PrimPath | Prim to remove |
| Layer | Layer to remove prim specs from. This can be left with the invalid layer (default) in order to remove all specs from the entire stage's local layer stack. |