One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MaterialParameterTypes.TextureCoordinateTransform

struct · iOS 15.0+ · SDK 27.1

struct TextureCoordinateTransform

An 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.

Members (7)

get · iOS 15.0+

scale

TypeScript
get scale(): SDKHandle
Swift declaration
var scale: SIMD2<Float>

The amount by which the framework scale the UV texture coordinates.

set · iOS 15.0+

scale

TypeScript
set scale(value: SDKHandle)
Swift declaration
var scale: SIMD2<Float>

The amount by which the framework scale the UV texture coordinates.

init · iOS 15.0+

init

TypeScript
static init(offset?: SDKHandle, scale?: SDKHandle, rotation?: number): MaterialParameterTypes_TextureCoordinateTransform
Swift declaration
init(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 · iOS 15.0+

offset

TypeScript
get offset(): SDKHandle
Swift declaration
var offset: SIMD2<Float>

The amount by which the framework offsets the entity’s UV texture coordinates.

set · iOS 15.0+

offset

TypeScript
set offset(value: SDKHandle)
Swift declaration
var offset: SIMD2<Float>

The amount by which the framework offsets the entity’s UV texture coordinates.

get · iOS 15.0+

rotation

TypeScript
get rotation(): number
Swift declaration
var rotation: Float

The amount by which the framework rotates the UV texture coordinates you specify in radians.

set · iOS 15.0+

rotation

TypeScript
set rotation(value: number)
Swift declaration
var rotation: Float

The amount by which the framework rotates the UV texture coordinates you specify in radians.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →