defineReference#
Fully qualified name: usdex::core::defineReference
- pxr::UsdPrim usdex::core::defineReference(
- pxr::UsdPrim parent,
- const pxr::UsdPrim &source,
- std::optional<std::string_view> name = std::nullopt,
Define a reference to a prim as a child of the
parentprim.This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.
- Parameters:
parent – The parent prim to add the reference to
source – The prim to reference
name – The name of the reference. If not provided, uses the source prim’s name
- Returns:
The newly created reference prim. Returns an invalid prim on error.