Required Exposed Fields

Is there any attribute to make the fields required? Obviously if some fields are not set in the editor this could cause issues when running the game if those references are not complete.

Based on this, I don’t think so:

The lack of something like this, plus scalability, are the main reasons I prefer not to use @export variables for most things. I get around it by using other methods like Luis mentions just before the 1:00 mark: mostly @onready/equivalent and groups depending on the situation, and occasionally signals (using connect() instead of the Inspector).

Node Configuration Warnings might also be worth looking into, but would probably be overkill for something like this.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms