Topic was automatically imported from the old Question2Answer platform.
Asked By
nullsalad
I’m trying to hide a sprite by changing its transparency. I see that a Sprite’s CanvasItem component has a Color() function, and that the last value controls alpha, so I’m trying to do something like:
var canItem = GetNode("CanvasItem")
canItem.Color(1,1,1,0.5)
This doesn’t work. How do I access the CanvasItem?