TwistedTwigleg note: Was a separate, duplicate post
Trying to change alpha channel in TextureRect with
extends TextureRect
var x = 0
func ready():
set_process(true)
func process(delta):
modulate.a=255-x
x+=1
if x == 256:
set_process(false)
but it don't change alpha, just get visible if a>0, and not visible when a=0.
If change modulate alpha in editor, it shows in workspace good, but when game start, alpha still does not work.
Why is it ? Thank you