selections
TypeScriptget selections(): Record<string, string>Swift declarationvar selections: [String : String] { get }The composed variant selections on this prim, keyed by variant set name.
struct · iOS 27.0+ · SDK 27.1
struct VariantSetCollectionManages variant sets on a prim. Variants provide a way to package multiple variations of scene data within a single asset. A prim can have multiple variant sets, each containing named variants that can be selected at runtime.
get selections(): Record<string, string>Swift declarationvar selections: [String : String] { get }The composed variant selections on this prim, keyed by variant set name.
add(variantSetName: string): USDPrim_VariantSetSwift declaration@discardableResult func add(_ variantSetName: String) throws -> USDPrim.VariantSetAdds a new variant set to the prim. - Parameter variantSetName: The name of the variant set to add. - Returns: The newly added variant set. - Throws: An error if the variant set cannot be added.
get names(): Array<string>Swift declarationvar names: [String] { get }The names of all variant sets on this prim.
subscript(name: string): (USDPrim_VariantSet) | nullSwift declarationsubscript(name: String) -> USDPrim.VariantSet? { get }Returns the variant set with the specified name, or `nil` if no variant set with that name exists on the prim. - Parameter name: The name of the variant set. - Returns: The variant set, or `nil` if no variant set with that name exists on the prim.
No declarations were skipped in this snapshot.