Hi everyone, I want to set property for material, but I realize that the material instance is changed during the animation, this lead to the property I set before is disappeared. I know I can check if (previousMeshHashCode != currentMeshHashCode), then set those properties again, but I wonder if there're any official way or API to do this thing?
By the way, I realize most animations only change material one time at transition time, I quite understand why the material need to be changed. But there're some animations that change material
few time in an animation. If the material is changed quite frequency like that, I think it can be a hit to performance. Are there anyway to reduce that?