0 votes

Input.setcustommouse_cursor() can be used to set the mouse to a certain object.How can you to customize that the object to any color?

Godot version 3.3.4
in Engine by (54 points)

1 Answer

0 votes
by (418 points)

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?

As it's essential a texture, yes; you can modulate the colour as you see fit.

void draw ( RID canvasitem, Vector2 position, Color modulate=Color( 1, 1, 1, 1 ), bool transpose=false, Texture normalmap=null ) const- how do you code that?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.