a Flair is a UI element. Any text or sprite that is rendered in screen space and not world space should be a Flair object rendered via FlairRenderer.
Why?
It was named Flair because flair is a synonym for "Aptitude". Flair also has a connotation that applies to visual elements.
Some games or mechanics may have elements that don't move with the rest of the world and aren't intended to otherwise exist in the game's world space. Flair is intended to co-opt things like HUDs and menu systems.
How?
FlairCanvas
Handles its children's and n-children's components that derive from Flair.
Determines render order separate from the render order used by non-Flair objects.
Other things like scaling, base resolution/aspect ratio, which camera to render to, et cetera.
Flair component.
Components that want to render something in screen space should fit two qualifications:
Be a child or n-child of an object with a FlairCanvas component attached.
What it is
a Flair is a UI element. Any text or sprite that is rendered in screen space and not world space should be a Flair object rendered via FlairRenderer.
Why?
It was named
Flair
because flair is a synonym for "Aptitude". Flair also has a connotation that applies to visual elements.Some games or mechanics may have elements that don't move with the rest of the world and aren't intended to otherwise exist in the game's world space. Flair is intended to co-opt things like HUDs and menu systems.
How?
FlairCanvas
Handles its children's and n-children's components that derive from
Flair
.Flair component.
Components that want to render something in screen space should fit two qualifications:
FlairCanvas
component attached.Flair
component.