Hello,
I know it probably has something to do with how addressables changes some things but what is the process for swapping material at runtime on a prefab addressable that was instantiated? Everything works fine with using the asset database in the editor, but when building the addressabels and using built groups in the editor and on the device it does nothing. All I am doing is checking if the renderer has the material and if it does swap it.
public List<Renderer> colorChangeRenderers = new List<Renderer>();
public void SwapMaterial(Material materialToSwap, Material materialToUse)
{
foreach(Renderer renderer in colorChangeRenderers)
{
if (renderer.sharedMaterial == materialToSwap)
{
renderer.sharedMaterial = materialToUse;
}
}
}