field(_:as:)
Typed field accessor.
Declaration
func field<T>(_ name: USDToken, as type: T.Type) -> T? where T : USDValueProtocolParameters
- name:
The field name to look up.
- type:
The expected value type.
Return Value
The field’s value as T, or nil if the field is unauthored or holds a different type.