add(to:from:layerOffset:position:)
Adds an external payload arc.
Declaration
func add(to primPath: USDLayer.Path?, from assetPath: String, layerOffset: USDLayer.TimeOffset = .init(), position: USDPrim.ListPosition = .backOfPrependList) throwsParameters
- primPath:
The prim path within the target asset. Pass
nilto 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 payload in the prim’s payload list.