scale
TypeScriptget scale(): SDKHandleSwift declarationvar scale: SIMD2<Float>The amount by which the framework scale the UV texture coordinates.
struct · iOS 15.0+ · SDK 27.1
struct TextureCoordinateTransformAn object that defines a transformation the framework applies to a material’s UV-mapped textures. An entity’s UV texture coordinates define how RealityKit maps image textures onto an entity. This object defines a transformation to texture coordinates that changes the way this material maps textures onto an entity. You might, for example, continuously rotate, translate, or scale the texture coordinates and animate materials to create special effects, such as fire or flowing liquids.
get scale(): SDKHandleSwift declarationvar scale: SIMD2<Float>The amount by which the framework scale the UV texture coordinates.
set scale(value: SDKHandle)Swift declarationvar scale: SIMD2<Float>The amount by which the framework scale the UV texture coordinates.
static init(offset?: SDKHandle, scale?: SDKHandle, rotation?: number): MaterialParameterTypes_TextureCoordinateTransformSwift declarationinit(offset: SIMD2<Float> = .init(), scale: SIMD2<Float> = .init(1, 1), rotation: Float = 0.0)Creates a texture coordinate transform object. - Parameters: - offset: The amount to offset the UV texture coordinates. - scale: The amount to scale the UV texture coordinates. - rotation: The amount to rotate the UV texture coordinates in radians.
get offset(): SDKHandleSwift declarationvar offset: SIMD2<Float>The amount by which the framework offsets the entity’s UV texture coordinates.
set offset(value: SDKHandle)Swift declarationvar offset: SIMD2<Float>The amount by which the framework offsets the entity’s UV texture coordinates.
get rotation(): numberSwift declarationvar rotation: FloatThe amount by which the framework rotates the UV texture coordinates you specify in radians.
set rotation(value: number)Swift declarationvar rotation: FloatThe amount by which the framework rotates the UV texture coordinates you specify in radians.
No declarations were skipped in this snapshot.