One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PhysicallyBasedMaterial.BaseColor

struct · iOS 15.0+ · SDK 27.1

struct BaseColor

An object that defines an entity’s base color. Use this struct to specify an entity’s base color, which defines the entity’s appearance before RealityKit calculates the effect of lighting or material properties such as ``PhysicallyBasedMaterial/roughness-swift.property`` or ``PhysicallyBasedMaterial/metallic-swift.property``. For more information, see ``PhysicallyBasedMaterial/baseColor-swift.property``.

Members (4)

get · iOS 15.0+

textureSemantic

TypeScript
static get textureSemantic(): TextureResource_Semantic
Swift declaration
static let textureSemantic: TextureResource.Semantic

The intended use of this object’s texture property.

get · iOS 15.0+

texture

TypeScript
get texture(): (MaterialParameters_Texture) | null
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The base color as a UV Image map.

set · iOS 15.0+

texture

TypeScript
set texture(value: (MaterialParameters_Texture) | null)
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The base color as a UV Image map.

init · iOS 15.0+

init

TypeScript
static init(value: CustomMaterial_BaseColor): PhysicallyBasedMaterial_BaseColor
Swift declaration
init(_ value: CustomMaterial.BaseColor)

Creates a base color object from a custom material’s base color property. - Parameters: - value: The custom material’s base color property.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →