Hi! I’m developing a card game, and the holographic effect on the rare cards rotates with the cards as intended, but it doesn’t turn back to normal afterwards. Any clues to why it behaves in this way? Here’s a clip of this bug in action:
https://drive.google.com/file/d/1ate8iLpTPkq0G53E63DCmvYMBmobGKhp/view?usp=sharing
This is the script i use to rotate the card:
public void OnDrag(PointerEventData eventData)
{
if (canBeDragged)
{
this.transform.position = eventData.position;
transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(-30,-30,0), Time.deltaTime * 5f);
}
}
And this is the shader graph of the effect:
Thanks for your help!

