customData
TypeScriptget customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get set }Custom metadata authored alongside the reference.
struct · iOS 27.0+ · SDK 27.1
struct ReferenceA reference to an external layer or asset. References are composition arcs that bring content from another layer into this prim. A reference specifies the asset path, an optional target prim path within that asset, a time offset for remapping animation, and arbitrary custom metadata.
get customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get set }Custom metadata authored alongside the reference.
set customData(value: Record<string, USDValue>)Swift declarationvar customData: Dictionary<String, USDValue> { get set }Custom metadata authored alongside the reference.
get isInternal(): booleanSwift declarationvar isInternal: Bool { get }Whether this is an internal reference (empty asset path).
get layerOffset(): USDLayer_TimeOffsetSwift declarationvar layerOffset: USDLayer.TimeOffset { get set }Time-axis remap applied to the reference's animation.
set layerOffset(value: USDLayer_TimeOffset)Swift declarationvar layerOffset: USDLayer.TimeOffset { get set }Time-axis remap applied to the reference's animation.
setCustomData(key: string, value: USDValue): voidSwift declarationmutating func setCustomData(_ key: String, to value: USDValue)Sets `key` in `customData` to `value`. - Parameters: - key: The dictionary key. - value: The new value.
get primPath(): (USDLayer_Path) | nullSwift declarationvar primPath: USDLayer.Path? { get set }The target prim path within the referenced asset, or `nil` to use the asset's default prim.
set primPath(value: (USDLayer_Path) | null)Swift declarationvar primPath: USDLayer.Path? { get set }The target prim path within the referenced asset, or `nil` to use the asset's default prim.
static init(assetPath?: (string) | null, primPath?: (USDLayer_Path) | null, layerOffset?: USDLayer_TimeOffset, customData?: Record<string, USDValue>): USDPrim_ReferenceSwift declarationinit(assetPath: String? = nil, primPath: USDLayer.Path? = nil, layerOffset: USDLayer.TimeOffset = USDLayer.TimeOffset(), customData: Dictionary<String, USDValue> = [:])Creates a reference. - Parameters: - assetPath: The asset path to target. Pass `nil` for an internal reference (pointing within the same layer stack). - primPath: The prim path within the referenced asset. Pass `nil` to use the asset's default prim. - layerOffset: The time transformation applied during composition. - customData: Custom data dictionary attached to the reference.
get assetPath(): (string) | nullSwift declarationvar assetPath: String? { get set }The asset path the reference targets, or `nil` for an internal reference.
set assetPath(value: (string) | null)Swift declarationvar assetPath: String? { get set }The asset path the reference targets, or `nil` for an internal reference.
No declarations were skipped in this snapshot.