0 votes

In the Scene view some built in nodes show warnings if a specific child or value is missing. Can you set this up your self from code? And how would you do that if it is possible?

Example of warning

asked Jun 24 in Engine by peterhoglund (38 points)

2 Answers

0 votes

I never done it, but it looks like it's possible. See this article:


answered Jun 24 by jgodfrey (5,742 points)
0 votes

Hi try to use:

func getconfiguration_warning()
return "Text warning" if ...

an example form a tutorial, they need to call a function(by pressing a button) to change the level but the level needs to be uploaded on the variable in the inspector.

func onbuttonup() -> void:

func getconfigurationwarning() -> String:
return "The property Next Level can't be empty" if next
scene_path == "" else ""

the tutorial on divided in 3 parts and is on YouTube, don't remember which one was, hope it helps.


answered Jun 25 by Jorge (198 points)
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 How to use this Q&A? before posting your first questions.