One Logo Pool Ball
USDKit · IOS API REFERENCE

USDPrim.PayloadCollection

struct · iOS 27.0+ · SDK 27.1

struct PayloadCollection

Manages payload composition arcs on a prim.

Members (7)

method · iOS 27.0+

add

TypeScript
addToLayerOffsetPosition(primPath: USDLayer_Path, layerOffset?: USDLayer_TimeOffset, position?: USDPrim_ListPosition): void
Swift declaration
func add(to primPath: USDLayer.Path, layerOffset: USDLayer.TimeOffset = .init(), position: USDPrim.ListPosition = .backOfPrependList) throws

Adds an internal payload 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 payload in the prim's payload list. - Throws: An error if the payload cannot be added.

method · iOS 27.0+

add

TypeScript
addToFromLayerOffsetPosition(primPath: (USDLayer_Path) | null, assetPath: string, layerOffset?: USDLayer_TimeOffset, position?: USDPrim_ListPosition): void
Swift declaration
func add(to primPath: USDLayer.Path?, from assetPath: String, layerOffset: USDLayer.TimeOffset = .init(), position: USDPrim.ListPosition = .backOfPrependList) throws

Adds an external payload 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 payload in the prim's payload list. - Throws: An error if the payload cannot be added.

method · iOS 27.0+

add

TypeScript
addPosition(payload: USDPrim_Payload, position?: USDPrim_ListPosition): void
Swift declaration
func add(_ payload: USDPrim.Payload, position: USDPrim.ListPosition = .backOfPrependList) throws

Adds an existing payload arc to the prim. - Parameters: - payload: The payload to add. - position: Where to insert the payload in the prim's payload list. - Throws: An error if the payload cannot be added.

method · iOS 27.0+

set

TypeScript
set(payloads: Array<USDPrim_Payload>): void
Swift declaration
func set(_ payloads: [USDPrim.Payload]) throws

Replaces all payload arcs with the specified list. - Parameter payloads: The new list of payloads. - Throws: An error if the payloads cannot be set.

get · iOS 27.0+

prim

TypeScript
get prim(): USDPrim
Swift declaration
var prim: USDPrim { get }

The prim that owns these payload arcs.

method · iOS 27.0+

clear

TypeScript
clear(): void
Swift declaration
func clear() throws

Removes all payload arcs from the prim. - Throws: An error if the payloads cannot be cleared.

method · iOS 27.0+

remove

TypeScript
remove(payload: USDPrim_Payload): void
Swift declaration
func remove(_ payload: USDPrim.Payload) throws

Removes a specific payload arc from the prim. - Parameter payload: The payload to remove. - Throws: An error if the payload cannot be removed.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →