Contents

add(to:from:layerOffset:position:)

Adds an external reference arc.

Declaration

func add(to primPath: USDLayer.Path?, from assetPath: String, layerOffset: USDLayer.TimeOffset = .init(), position: USDPrim.ListPosition = .backOfPrependList) throws

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.

Discussion