isIdentity
TypeScriptget isIdentity(): booleanSwift declarationvar isIdentity: Bool { get }Whether this offset has no effect (`offset == 0`, `scale == 1`).
struct · iOS 27.0+ · SDK 27.1
struct TimeOffsetA time transformation applied when composing layers. Consists of an offset (time shift) and a scale factor. Used in references and payloads to remap animation timing from a referenced layer into the referencing layer's timeline.
get isIdentity(): booleanSwift declarationvar isIdentity: Bool { get }Whether this offset has no effect (`offset == 0`, `scale == 1`).
get scale(): numberSwift declarationvar scale: Double { get set }The scale factor applied during composition.
set scale(value: number)Swift declarationvar scale: Double { get set }The scale factor applied during composition.
static init(offset?: number, scale?: number): USDLayer_TimeOffsetSwift declarationinit(offset: Double = 0.0, scale: Double = 1.0)Creates a time offset with the given shift and scale. - Parameters: - offset: The time shift applied during composition. - scale: The scale factor applied during composition.
get offset(): numberSwift declarationvar offset: Double { get set }The time shift applied during composition.
set offset(value: number)Swift declarationvar offset: Double { get set }The time shift applied during composition.
get isValid(): booleanSwift declarationvar isValid: Bool { get }Whether both `offset` and `scale` are finite (not NaN or infinite).
No declarations were skipped in this snapshot.