Hello. Please help me.
I have a CUA and a script controlling this CUA. I want to change a material of the asset at runtime.
In this script I need to load and use a material which is contained in the assetbundle like this:
Material mat = assetbundle.LoadAsset("Material.mat", typeof(Material)) as Material;
However how do I get the refference to the assetbundle from the VAM script?
Is it even possible to get any material from the assetbundle at runtime?
I have a CUA and a script controlling this CUA. I want to change a material of the asset at runtime.
In this script I need to load and use a material which is contained in the assetbundle like this:
Material mat = assetbundle.LoadAsset("Material.mat", typeof(Material)) as Material;
However how do I get the refference to the assetbundle from the VAM script?
Is it even possible to get any material from the assetbundle at runtime?