primSpec
TypeScriptget primSpec(): (USDPrim_Spec) | nullSwift declarationvar primSpec: USDPrim.Spec? { get }The prim spec this variant authors when selected.
struct · iOS 27.0+ · SDK 27.1
struct VariantSpecA handle to a single variant option within a variant set.
get primSpec(): (USDPrim_Spec) | nullSwift declarationvar primSpec: USDPrim.Spec? { get }The prim spec this variant authors when selected.
get variantSets(): NativeMap<USDToken, USDPrim_VariantSetSpec>Swift declarationvar variantSets: [USDToken : USDPrim.VariantSetSpec] { get }Variant sets defined inside this variant (nested variation).
variantNames(variantSetName: USDToken): Array<USDToken>Swift declarationfunc variantNames(_ variantSetName: USDToken) -> [USDToken]Returns the variant names available in a nested variant set on this variant. - Parameter variantSetName: The nested variant set name. - Returns: The variant names defined in `variantSetName`.
get name(): USDTokenSwift declarationvar name: USDToken { get }The variant's local name.
static initOwnerName(owner: USDPrim_VariantSetSpec, name: USDToken): (USDPrim_VariantSpec) | nullSwift declarationinit?(owner: USDPrim.VariantSetSpec, name: USDToken)Creates a new variant spec under the given variant set spec. - Parameters: - owner: The variant set that owns the new variant. - name: The variant's name.
get owner(): (USDPrim_VariantSetSpec) | nullSwift declarationvar owner: USDPrim.VariantSetSpec? { get }The owning variant set spec.
static init(): USDPrim_VariantSpecSwift declarationinit()Creates an empty (invalid) variant spec handle.
static init62147(spec: USDLayer_Spec): (USDPrim_VariantSpec) | nullSwift declarationinit?(_ spec: USDLayer.Spec)Narrows an untyped ``USDLayer/Spec`` to a variant spec. - Parameter spec: The spec to narrow. - Returns: A variant spec, or `nil` if `spec` is not a variant spec.
No declarations were skipped in this snapshot.