ImageBasedLightingAssetTester


class ImageBasedLightingAssetTester


A data container for inspecting the properties of an ImageBasedLightingAsset resource.

Summary

Public functions

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

Public properties

ByteArray

The raw byte data of the asset.

String

A unique key identifying the asset in the fake rendering runtime.

String

A string representation of the source location for the preprocessed .zip ImageBasedLightingAsset.

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

assetData

Added in 1.0.0-alpha16
val assetDataByteArray

The raw byte data of the asset.

assetKey

Added in 1.0.0-alpha16
val assetKeyString

A unique key identifying the asset in the fake rendering runtime.

assetPath

Added in 1.0.0-alpha16
val assetPathString

A string representation of the source location for the preprocessed .zip ImageBasedLightingAsset. The exact contents and format of this string depend on which factory method was used to create this instance.

  • If created using ImageBasedLightingAsset.createFromZip (with Path): This value is the result of path.toString(). The input Path must be relative to the application's assets/ folder, so this string will represent a relative path, typically using / as a separator. Examples:

    • Paths.get("test.zip") results in assetPath being "test.zip".

    • Paths.get("data", "test.zip") results in assetPath being "data/test.zip".

  • If created using ImageBasedLightingAsset.createFromZip (with Uri): This value is the result of uri.toString(). This can be any valid android.net.Uri string representation supported for loading assets, including relative paths or URIs with schemes. Examples:

    • "data/test.zip".toUri() (using AndroidX extension) results in assetPath being "data/test.zip".