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
{
bool UsdUtils&58;&58;RenamePrim
&40;
UE::FUsdPrim & Prim,
const TCHAR &42; NewPrimName
&41;
}
Remarks
Renames a single prim to a new name WARNING: This will lead to issues if called from within a pxr::SdfChangeBlock. This because it needs to be able to send separate notices: One notice about the renaming, that the transactor can record on the current edit target, and one extra notice about the definition of an auxiliary prim on the session layer, that the transactor must record as having taken place on the session layer. True if we managed to rename
Parameters
| Name | Description |
|---|---|
| Prim | Prim to rename |
| NewPrimName | New name for the prim e.g. "MyNewName" |