setField
Swift declaration@discardableResult func setField(_ name: USDToken, to value: USDValue) -> BoolSets the field `name` to `value`. - Parameters: - name: The field name. - value: The new value. - Returns: `true` on success.
protocol · iOS 27.0+ · SDK 27.1
protocol FieldCollectionLow-level read/write access to spec fields. Fields are the raw data backing both metadata and structural information on a spec.
@discardableResult func setField(_ name: USDToken, to value: USDValue) -> BoolSets the field `name` to `value`. - Parameters: - name: The field name. - value: The new value. - Returns: `true` on success.
@discardableResult func setField<T>(_ name: USDToken, to value: T) -> Bool where T : USDValueProtocolTyped field setter. - Parameters: - name: The field name to author. - value: The typed value to store. - Returns: `true` on success.
@discardableResult func clearField(_ name: USDToken) -> BoolClears the authored value for `name`. - Parameter name: The field name to clear. - Returns: `true` if the field had been authored.
func field<T>(_ name: USDToken, as type: T.Type) -> T? where T : USDValueProtocolTyped field accessor. - Parameters: - name: The field name to look up. - type: The expected value type. - Returns: The field's value as `T`, or `nil` if the field is unauthored or holds a different type.
func field(_ name: USDToken) -> USDValue?Returns the value of `name`, or `nil` if the field is unauthored. - Parameter name: The field name to look up. - Returns: The field's value, or `nil` if unauthored.
var fields: [USDToken] { get }All authored field names on this spec.
func isInert(ignoringChildren: Bool = false) -> BoolReturns a Boolean value that indicates whether the spec contains no authored data. - Parameter ignoringChildren: Pass `true` to skip child specifier lists when evaluating inertness. - Returns: `true` if the spec has no authored data.
No declarations were skipped in this snapshot.