#How to set Panel Alpha (transparency) without a style, programmatically?

12 messages · Page 1 of 1 (latest)

hallow mulch
#

In tweens, you can use modulate:a, where accessing the alpha property is direct. There must be some public value that the tween acts on, but I have been unable to find it in the docs or editor introspection.

tropic fox
#

panels have a modulate property as well

#

it's a canvasitem

hallow mulch
#

panel.get_canvas_item().alpha?

#

The docs on canvas item don't help with identifying the properties imo

#

The editor doesn't recognize this nor does it have a helpful suggestion

#

panel.get_canvas_item().modulate = Color(1,1,1,0) ?

#

no property modulate =/

tropic fox
#

panel.modulate.a

#

canvas item is not a function

#

it's a class

#

in the docs, all the properties are listed at the top of the page