You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bevy 0.19.0-dev (the main branch as of 2026-05-07, 1dce255)
I recently started trying the bsn! macro. Is it not possible to directly instantiate a tuple-like enum variant within it? The following a() function fails to compile.
use bevy::{prelude::*, text::LineHeight};// error[E0599]: no variant or associated item named `default_px` found for enum `LineHeight` in the current scopefna() -> implScene{bsn!{LineHeight::Px(50.0)}}// No errorfnb() -> implScene{bsn!{LineHeight::from(LineHeight::Px(50.0))}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Bevy 0.19.0-dev (the main branch as of 2026-05-07, 1dce255)
I recently started trying the
bsn!macro. Is it not possible to directly instantiate a tuple-like enum variant within it? The followinga()function fails to compile.Beta Was this translation helpful? Give feedback.
All reactions