Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes godotengine/godot-proposals#2539. This adds a new export annotation,
@no_storage
, that must go after an@export
annotation to be used. It will remove thePROPERTY_USAGE_STORAGE
flag from the exported variable, allowing it to be editor-only.I used suggestions from the above issue and from related issues in this commit, including those by @dalexeev. Feel free to request changes. I wrote the documentation for
@no_storage
based on@export
and@export_storage
, but it can possibly be improved.Due to a limitation of my implementation, I could not entirely preventEdit: I fixed this issue with @dalexeev's solution, so I removed that note. Also, since the documentation is listed alphabetically,@export_custom
from being used along with@no_storage
, so I put it in a note in the documentation that it is not recommended to use them together.@no_storage
appears separately from the other export annotations. It may be fine since it is a special one, but still something to note.