-
Notifications
You must be signed in to change notification settings - Fork 212
Rust enum #[property] #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Adding an option to derive Writing a derive macro that generates |
The |
Ah, thanks! |
Am I wrong that for rust enums to be exported to the Inspector as enumerated strings, each Node has to add a property (w/
PropertyBuilder
), a getter that returns a string representation of the enum variant, a setter that takes a string representation and converts it into an enum variant, and aStringHint::Enum(EnumHint::...
? This seems rather verbose.Can this instead be automated with
#[property(...)]
?The text was updated successfully, but these errors were encountered: