loadTextureResource

Loads a texture resource from the specified path.

Return

Returns a TextureResource object representing the loaded texture.

Parameters

path

The path to the texture resource within the AssetBundle.

Throws

IllegalStateException

If the asset bundle is closed.

If any error occurs during the loading process.