Add separate feature tags for editor runtime

This commit is contained in:
kobewi
2023-12-02 18:55:27 +01:00
parent 86bf8354a0
commit 3ebb5b84a0
7 changed files with 23 additions and 4 deletions

View File

@ -398,6 +398,11 @@ bool OS::has_feature(const String &p_feature) {
if (p_feature == "editor") {
return true;
}
if (p_feature == "editor_hint") {
return _in_editor;
} else if (p_feature == "editor_runtime") {
return !_in_editor;
}
#else
if (p_feature == "template") {
return true;