Need help on creating a variable for a images modulate variable

Godot Version



Its not that I don’t know how to use modulate it’s more of a problem with being able to locate its path for my code
Do you know how to make a variable for it.

If you are extending any Node that extends CanvasItem, it already has a modulate property you can access directly.

1 Like

Yeah but I don’t know how to access it that’s the problem

You just do variable_that_references_the_node.modulate

Or if you’re trying to set it on the same node the script is on, just use modulate

It’s just a color you can set like modulate = Color.RED

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.