removeVariant
TypeScriptremoveVariant(variant: USDPrim_VariantSpec): voidSwift declarationfunc removeVariant(_ variant: USDPrim.VariantSpec)Removes the given variant spec from this set. - Parameter variant: The variant spec to remove.
struct · iOS 27.0+ · SDK 27.1
struct VariantSetSpecA handle to a variant set — a named group of variant options.
removeVariant(variant: USDPrim_VariantSpec): voidSwift declarationfunc removeVariant(_ variant: USDPrim.VariantSpec)Removes the given variant spec from this set. - Parameter variant: The variant spec to remove.
get name(): USDTokenSwift declarationvar name: USDToken { get }The variant set's local name.
static initOwnerName(owner: USDPrim_Spec, name: USDToken): (USDPrim_VariantSetSpec) | nullSwift declarationinit?(owner: USDPrim.Spec, name: USDToken)Creates a new variant set spec under the given prim spec. - Parameters: - owner: The prim spec that owns the new variant set. - name: The variant set's name.
static initOwnerName47189(owner: USDPrim_VariantSpec, name: USDToken): (USDPrim_VariantSetSpec) | nullSwift declarationinit?(owner: USDPrim.VariantSpec, name: USDToken)Creates a new variant set spec nested inside a variant spec. - Parameters: - owner: The variant spec that owns the new (nested) variant set. - name: The variant set's name.
get owner(): (USDLayer_Spec) | nullSwift declarationvar owner: USDLayer.Spec? { get }The owning spec — a prim spec or variant spec.
get variants(): Array<USDPrim_VariantSpec>Swift declarationvar variants: [USDPrim.VariantSpec] { get }All variant specs in this set.
static init(): USDPrim_VariantSetSpecSwift declarationinit()Creates an empty (invalid) variant set spec handle.
static init11999(spec: USDLayer_Spec): (USDPrim_VariantSetSpec) | nullSwift declarationinit?(_ spec: USDLayer.Spec)Narrows an untyped ``USDLayer/Spec`` to a variant set spec. - Parameter spec: The spec to narrow. - Returns: A variant set spec, or `nil` if `spec` is not a variant set spec.
No declarations were skipped in this snapshot.