customData
TypeScriptget customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get }The custom data dictionary authored on this property.
struct · iOS 27.0+ · SDK 27.1
struct SpecA handle to a property definition (attribute or relationship) stored in a layer. `USDPrim.Property.Spec` is the untyped base for `USDPrim.Attribute.Spec` and `USDPrim.Relationship.Spec`. It acts as a handle into data owned by a ``USDLayer`` and mutations write through to the layer.
get customData(): Record<string, USDValue>Swift declarationvar customData: Dictionary<String, USDValue> { get }The custom data dictionary authored on this property.
get permission(): USDLayer_PermissionSwift declarationvar permission: USDLayer.Permission { get nonmutating set }The property's permission level (public, restricted, private).
set permission(value: USDLayer_Permission)Swift declarationvar permission: USDLayer.Permission { get nonmutating set }The property's permission level (public, restricted, private).
static isValidName(name: USDToken): booleanSwift declarationstatic func isValidName(_ name: USDToken) -> BoolReturns a Boolean value that indicates whether `name` is a valid property name. - Parameter name: The candidate name. - Returns: `true` if `name` is a valid property name; otherwise, `false`.
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.
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.
get name(): USDTokenSwift declarationvar name: USDToken { get }The property's local name.
get owner(): (USDLayer_Spec) | nullSwift declarationvar owner: USDLayer.Spec? { get }The spec that contains this property — typically a prim spec or variant spec.
rename(name: USDToken): voidSwift declarationfunc rename(to name: USDToken) throwsSets the property'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 property was authored as `custom`.
set isCustom(value: boolean)Swift declarationvar isCustom: Bool { get nonmutating set }Whether this property was authored as `custom`.
static init(): USDPrim_Property_SpecSwift declarationinit()Creates an empty (invalid) property spec handle.
static init6968(spec: USDLayer_Spec): (USDPrim_Property_Spec) | nullSwift declarationinit?(_ spec: USDLayer.Spec)Narrows an untyped ``USDLayer/Spec`` to a property spec. - Parameter spec: The spec to narrow. - Returns: A property spec, or `nil` if `spec` is not an attribute or relationship spec.
No declarations were skipped in this snapshot.