Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cloa513 |
Input.set_custom_mouse_cursor() can be used to set the mouse to a certain object.How can you to customize that the object to any color?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cloa513 |
Input.set_custom_mouse_cursor() can be used to set the mouse to a certain object.How can you to customize that the object to any color?
Reply From: | spaceyjase |
You use a custom image with the desired colour:
What if I want to allow the user to specify the color using a colorpicker button or similar. Can I tint the custom image to that color?
cloa513 | 2021-11-11 11:08
As it’s essential a texture, yes; you can modulate the colour as you see fit.
spaceyjase | 2021-11-11 11:15
void draw ( RID canvas_item, Vector2 position, Color modulate=Color( 1, 1, 1, 1 ), bool transpose=false, Texture normal_map=null ) const- how do you code that?
cloa513 | 2021-11-11 12:20