ImageBasedLightingAssetTester


public final class ImageBasedLightingAssetTester


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

Summary

Public methods

boolean
equals(Object other)
final @NonNull byte[]

The raw byte data of the asset.

final @NonNull String

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

final @NonNull String

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

int

Public methods

equals

public boolean equals(Object other)

getAssetData

Added in 1.0.0-alpha16
public final @NonNull byte[] getAssetData()

The raw byte data of the asset.

getAssetKey

Added in 1.0.0-alpha16
public final @NonNull String getAssetKey()

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

getAssetPath

Added in 1.0.0-alpha16
public final @NonNull String getAssetPath()

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

hashCode

public int hashCode()