Adds an internal reference arc that targets a prim in the same layer stack.
- Parameters:
- primPath: The path of the target prim within the same layer stack.
- layerOffset: Time offset and scale to apply during composition.
- position: Where to insert the reference in the prim's reference list.
- Throws: An error if the reference cannot be added.
Adds an external reference arc.
- Parameters:
- primPath: The prim path within the target asset. Pass `nil` to
target the asset's default prim.
- assetPath: The asset path of the external layer to load.
- layerOffset: Time offset and scale to apply during composition.
- position: Where to insert the reference in the prim's reference list.
- Throws: An error if the reference cannot be added.
Adds an existing reference arc to the prim.
- Parameters:
- reference: The reference to add.
- position: Where to insert the reference in the prim's reference list.
- Throws: An error if the reference cannot be added.
Replaces all reference arcs with the specified list.
- Parameter references: The new list of references.
- Throws: An error if the references cannot be set.
get · iOS 27.0+
prim
TypeScript
get prim(): USDPrim
Swift declaration
var prim: USDPrim { get }
The prim that owns these reference arcs.
method · iOS 27.0+
clear
TypeScript
clear(): void
Swift declaration
func clear() throws
Removes all reference arcs from the prim.
- Throws: An error if the references cannot be cleared.