loadFromAssetBundle

@JvmStatic
fun loadFromAssetBundle(assetBundle: AssetBundle, path: String): ShaderGraphMaterial

Loads a ShaderGraphMaterial from AssetBundle through a relative path.

Return

The ShaderGraphMaterial loaded.

Parameters

assetBundle

The AssetBundle to load the ShaderGraphMaterial from.

path

The relative path.

Throws

IllegalStateException

If the AssetBundle is closed.

ResourceLoadingException

If the loading fails.