Fade in fade out transition for an image entity

Is there any way to add fade in fade out transition for an image entity in playcanvas. I found a way for doing it for meshes but i’m not able to do it for image elements.

Hi @Ashiq_Khan and welcome!

In code you use the following property to control the opacity of an image element:

this.entity.element.opacity = 0.5;

You can use a tween or some update method to go from 0.0 -> 1.0 and back to make your transitions.