#4257·FlaxEngine

[Request]: Support adjacent string literals in API_* tag attributes

Author: ghueldre-pierreCreated Sep 9, 2026Updated Sep 14, 2026
Labelstoolssuggestionscripting

Description

I recently ran into a small limitation while using multiple attributes with API_FIELD.

For example, I initially wrote:

cpp
API_FIELD(Attributes =
    "Range(0.0f, 0.3f), "
    "Tooltip(\"My quite long tooltip ...\")"
)
float SomeVariable = 0.05f;

Since adjacent string literals are concatenated in C++, I expected this to be equivalent to:

cpp
API_FIELD(Attributes="Range(0.0f, 0.3f), Tooltip(\"My quite long tooltip ...\")")

However, Flax.Build reports the second string literal as an unsupported tag parameter:

Unknown or not supported tag parameter '"Tooltip..."'

I eventually found that putting all attributes into a single string literal works correctly:

cpp
API_FIELD(Attributes="Range(0.0f, 0.3f), Tooltip(\"...\")")

Would it be possible for the Flax.Build parser to support adjacent string literals in API_* tags?

Benefits

It would mainly be a readability improvement, especially when several attributes are used or when attributes such as Tooltip contain longer strings.

If supporting this in the parser would be too complex or undesirable, I think it could at least be useful to mention in the documentation that the whole Attributes value currently needs to be contained in a single string literal.