tween with show() and hide()

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bluemage

So I can make what I want work with a MeshInstance.show() and MeshInstance.hide(). I was wondering if there was a way to fade the show and hide in and out. I’ve been playing with tweening without much luck. Can someone give me an example of tween between show() and hide() or with opacity somehow.

:bust_in_silhouette: Reply From: Asheraryam

In 3D you cannot easily access opacity, you have to make a simple shader and animate the shader properties.

These are two example youtube video on how to use shaders, one of them is using visual scripting and the other one through code.

You can then animate the shader property using tween to control this effect from code.