customData
TypeScriptget customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get }The custom data dictionary authored on this relationship.
struct · iOS 27.0+ · SDK 27.1
struct SpecA handle to a relationship definition stored in a layer. Relationships store connections to other prims (target paths) rather than typed values. Used for scene linkages like material bindings, collection membership, and proxy references.
get customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get }The custom data dictionary authored on this relationship.
get noLoadHint(): booleanSwift declarationvar noLoadHint: Bool { get nonmutating set }Hint to the runtime to skip loading payloads on targeted prims. Default: `false`.
set noLoadHint(value: boolean)Swift declarationvar noLoadHint: Bool { get nonmutating set }Hint to the runtime to skip loading payloads on targeted prims. Default: `false`.
get permission(): USDLayer_PermissionSwift declarationvar permission: USDLayer.Permission { get nonmutating set }The relationship's permission level (public, restricted, private).
set permission(value: USDLayer_Permission)Swift declarationvar permission: USDLayer.Permission { get nonmutating set }The relationship's permission level (public, restricted, private).
get targetPaths(): (Array<USDLayer_Path>) | nullSwift declarationvar targetPaths: [USDLayer.Path]? { get }The authored target paths, or `nil` if none authored.
removeTarget(path: USDLayer_Path, preservingOrder?: boolean): voidSwift declarationfunc removeTarget(_ path: USDLayer.Path, preservingOrder: Bool = false)Removes an authored target path. - Parameters: - path: The target path to remove. - preservingOrder: Pass `true` to keep the relative ordering of remaining targets stable.
setAssetInfo(key: string, value: USDValue): voidSwift declarationfunc setAssetInfo(_ key: String, to value: USDValue)Sets `key` in the asset info dictionary to `value`. Read the full dictionary via `field("assetInfo")` from FieldCollection. - Parameters: - key: The dictionary key. - value: The new value.
get documentation(): (string) | nullSwift declarationvar documentation: String? { get nonmutating set }The authored documentation, or `nil` if not authored.
set documentation(value: (string) | null)Swift declarationvar documentation: String? { get nonmutating set }The authored documentation, or `nil` if not authored.
replaceTarget(oldPath: USDLayer_Path, newPath: USDLayer_Path): voidSwift declarationfunc replaceTarget(_ oldPath: USDLayer.Path, with newPath: USDLayer.Path)Replaces an authored target path with a new path. - Parameters: - oldPath: The existing target path. - newPath: The replacement target path.
setCustomData(key: string, value: USDValue): voidSwift declarationfunc setCustomData(_ key: String, to value: USDValue)Sets `key` in the custom data dictionary to `value`. - Parameters: - key: The dictionary key. - value: The new value.
clearAssetInfo(key: string): voidSwift declarationfunc clearAssetInfo(_ key: String)Removes `key` from the asset info dictionary. - Parameter key: The dictionary key to clear.
clearCustomData(key: string): voidSwift declarationfunc clearCustomData(_ key: String)Removes `key` from the custom data dictionary. - Parameter key: The dictionary key to clear.
clearTargetPaths(): voidSwift declarationfunc clearTargetPaths()Clears all authored target paths on this relationship.
get name(): USDTokenSwift declarationvar name: USDToken { get }The relationship's local name.
static initLayerRelationshipPathVariabilityIsCustom(layer: USDLayer, relationshipPath: USDLayer_Path, variability?: USDPrim_Property_Variability, isCustom?: boolean): (USDPrim_Relationship_Spec) | nullSwift declarationinit?(layer: USDLayer, relationshipPath: USDLayer.Path, variability: USDPrim.Property.Variability = .varying, isCustom: Bool = false)Creates a relationship spec at the given path in the layer, authoring intermediate ancestor prim specs as `over`s where needed. - Parameters: - layer: The layer that owns the new relationship. - relationshipPath: The full path of the relationship to author. - variability: The relationship's variability. - isCustom: Whether the relationship is authored as `custom`.
static initOwnerNameVariabilityIsCustom(owner: USDPrim_Spec, name: USDToken, variability?: USDPrim_Property_Variability, isCustom?: boolean): (USDPrim_Relationship_Spec) | nullSwift declarationinit?(owner: USDPrim.Spec, name: USDToken, variability: USDPrim.Property.Variability = .varying, isCustom: Bool = true)Creates a new relationship spec under the given prim spec. - Parameters: - owner: The prim spec that owns the new relationship. - name: The relationship's name. - variability: The relationship's variability. - isCustom: Whether the relationship is authored as `custom`.
get owner(): (USDLayer_Spec) | nullSwift declarationvar owner: USDLayer.Spec? { get }The spec that contains this relationship.
rename(name: USDToken): voidSwift declarationfunc rename(to name: USDToken) throwsSets the relationship's name. - Parameter name: The new name to assign. - Throws: An error if the new name is invalid or already used by a sibling.
get comment(): (string) | nullSwift declarationvar comment: String? { get nonmutating set }The authored user comment, or `nil` if not authored.
set comment(value: (string) | null)Swift declarationvar comment: String? { get nonmutating set }The authored user comment, or `nil` if not authored.
get isCustom(): booleanSwift declarationvar isCustom: Bool { get nonmutating set }Whether this relationship was authored as `custom`.
set isCustom(value: boolean)Swift declarationvar isCustom: Bool { get nonmutating set }Whether this relationship was authored as `custom`.
static init(): USDPrim_Relationship_SpecSwift declarationinit()Creates an empty (invalid) relationship spec handle.
static init24430(spec: USDLayer_Spec): (USDPrim_Relationship_Spec) | nullSwift declarationinit?(_ spec: USDLayer.Spec)Narrows an untyped ``USDLayer/Spec`` to a relationship spec. - Parameter spec: The spec to narrow. - Returns: A relationship spec, or `nil` if `spec` is not a relationship spec.
No declarations were skipped in this snapshot.