Navigation
API > API/Plugins > API/Plugins/USDUtilities
References
| Module | USDUtilities |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Public/USDConversionUtils.h |
| Include | #include "USDConversionUtils.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Private/USDConversionUtils.cpp |
namespace UsdUtils
{
void UsdUtils&58;&58;RemoveAllLocalPrimSpecs
&40;
const UE::FUsdPrim & Prim,
const UE::FSdfLayer & Layer
&41;
}
Remarks
Removes all the prim specs for Prim on the given Layer, if the layer belongs to the stage's local layer stack.
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.
Parameters
| Name | Description |
|---|---|
| Prim | 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. |