[Godot 4, C#] How to recreate Unitys [RequireComponent(typeof()]?

I mean, do you want a warning or you want to automatically create the Node if it doesn’t exist?

Here’s how to create custom warnings for scenes.

Or, in that method (_get_configuration_warnings) you could instantiate the missing node if you find it’s not assigned instead of sending a warning.

2 Likes