description
TypeScriptget description(): stringSwift declarationvar description: String { get }A summary description of this relationship. This property is safe to access on an invalid or expired relationship.
struct · iOS 27.0+ · SDK 27.1
struct RelationshipA property that connects a prim to one or more other objects in the stage by their paths.
get description(): stringSwift declarationvar description: String { get }A summary description of this relationship. This property is safe to access on an invalid or expired relationship.
get name(): USDTokenSwift declarationvar name: USDToken { get }The name of this relationship. A relationship's name is the last component of its ``path``. This property is equivalent to the ``USDLayer.Path/name`` property of that path.
get path(): USDLayer_PathSwift declarationvar path: USDLayer.Path { get }The complete scene path to this relationship, relative to its stage.
get prim(): USDPrimSwift declarationvar prim: USDPrim { get }The nearest prim that contains this relationship.
get stage(): USDStageSwift declarationvar stage: USDStage { get }The stage that owns this relationship. A relationship's state and validity is connected to its stage. A relationship becomes invalid when the lifetime of its stage ends. It can also become invalid when the stage is modified.
get isValid(): booleanSwift declarationvar isValid: Bool { get }A Boolean value indicating whether this relationship is valid. A relationship's validity is connected to a ``USDStage``. A relationship becomes invalid when the lifetime of its stage ends. A relationship will also expire if its stage no longer defines a value for the relationship. `isValid` is false if this relationship has expired.
get targets(): Array<USDLayer_Path>Swift declarationvar targets: [USDLayer.Path] { get nonmutating set }The target paths authored on this relationship.
set targets(value: Array<USDLayer_Path>)Swift declarationvar targets: [USDLayer.Path] { get nonmutating set }The target paths authored on this relationship.
get primPath(): USDLayer_PathSwift declarationvar primPath: USDLayer.Path { get }The complete path to the nearest prim that contains this relationship. `primPath` is the ``USDPrim/path`` of this relationship's ``prim``.
static init(): USDPrim_RelationshipSwift declarationinit()An invalid relationship handle.
static init16044(object: USDStage_Object): (USDPrim_Relationship) | nullSwift declarationinit?(_ object: USDStage.Object)Casts an object handle to a relationship handle. Returns `nil` if the object is not a relationship.
static init38946(object: USDPrim_Property): (USDPrim_Relationship) | nullSwift declarationinit?(_ object: USDPrim.Property)Casts a property handle to a relationship handle. Returns `nil` if the property is not a relationship.
No declarations were skipped in this snapshot.