0 votes

I have created a custom node in Godot Mono, and added it as a Theme type in the editor. I can query this in my Draw() method, although I've encountered some issues.

Firstly, updating the theme resource doesn't update the node visually in real time. I've overcome this using Update() for the exported variables, but is there something I can use to update my node when the theme is changed?

Secondly, am I able to add theme overrides for my custom node? It will be annoying needing to create a custom theme every time I want the node to look slightly different.

Any help much appreciated.

** Edit
Solved the theme update issue by moving the theme fetching code from _EnterTree() to Draw(). Now it's just the second issue.

Godot version v3.4.4.stable.mono
in Engine by (21 points)
edited by

Please log in or register to answer this question.

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 [email protected] with your username.