I have the following situation, where in I need to animate textures on 3D animating plane in runtime.
There are 5 panels in the unity scene and two buttons, each button, when clicked triggers one state of an animation.
Each time the animation triggers, the textures on the panels has to change dynamically, the textures which will be on panels when animation triggers are loaded from backend,
-> The problem here is the textures are not sync with panel animations.
-> I have written a simple code that swaps the textures.
-> The code works fine but I wanted make sure that the textures are swapped smoothly with animation.
Is there any way where in I can swap the panel textures in sync with animation?

Any sort of guidance, lead would be helpful.
public void LoadNextReelThumbnails()
{
var last = videoPanelTextures.Dequeue();
Debug.Log(videoPanelTextures.Count + " ##########");
var a = panalRightObjects[0].GetComponent<Renderer>().material.mainTexture;
var b = panalRightObjects[1].GetComponent<Renderer>().material.mainTexture;
var c = panalRightObjects[2].GetComponent<Renderer>().material.mainTexture;
panalRightObjects[2].GetComponent<Renderer>().material.mainTexture = last;
panalRightObjects[1].GetComponent<Renderer>().material.mainTexture = c;
panalRightObjects[0].GetComponent<Renderer>().material.mainTexture = b;
var x = panalLeftObjects[0].GetComponent<Renderer>().material.mainTexture;
panalLeftObjects[0].GetComponent<Renderer>().material.mainTexture = a;
panalLeftObjects[1].GetComponent<Renderer>().material.mainTexture = x;
}