SpatialEnvironment.SpatialEnvironmentPreference


class SpatialEnvironment.SpatialEnvironmentPreference


Represents the preferred spatial environment for the application.

Summary

Public constructors

SpatialEnvironmentPreference(
    skybox: ExrImage?,
    geometry: GltfModel?,
    geometryMaterial: Material?,
    geometryMeshName: String?,
    geometryAnimationName: String?
)

Represents the preferred spatial environment for the application.

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

GltfModel?

The preferred geometry for the environment based on a pre-loaded GltfModel.

ExrImage?

The preferred skybox for the environment based on a pre-loaded EXR Image.

Public constructors

SpatialEnvironmentPreference

Added in 1.0.0-alpha05
SpatialEnvironmentPreference(skybox: ExrImage?, geometry: GltfModel?)
Parameters
skybox: ExrImage?

The preferred skybox for the environment based on a pre-loaded EXR Image. If null, it will be all black.

geometry: GltfModel?

The preferred geometry for the environment based on a pre-loaded GltfModel. If null, there will be no geometry.

SpatialEnvironmentPreference

Added in 1.0.0-alpha05
SpatialEnvironmentPreference(
    skybox: ExrImage?,
    geometry: GltfModel?,
    geometryMaterial: Material?,
    geometryMeshName: String? = null,
    geometryAnimationName: String? = null
)

Represents the preferred spatial environment for the application.

Parameters
skybox: ExrImage?

The preferred skybox for the environment.

geometry: GltfModel?

The preferred geometry for the environment.

geometryMaterial: Material?

The material to override a given mesh in the geometry.

geometryMeshName: String? = null

The name of the mesh to override with the material.

geometryAnimationName: String? = null

The name of the animation to play on the geometry.

Throws
kotlin.IllegalStateException

if the material is not properly set up and if the geometry glTF model does not contain the mesh or the animation name.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

geometry

Added in 1.0.0-alpha05
val geometryGltfModel?

The preferred geometry for the environment based on a pre-loaded GltfModel. If null, there will be no geometry.

skybox

Added in 1.0.0-alpha05
val skyboxExrImage?

The preferred skybox for the environment based on a pre-loaded EXR Image. If null, it will be all black.