Hello, we’re trying to understand the best practices for using Button Styles, Text Styles, and Material Animations. We’re looking to do the bulk of our animation on buttons via material parameters.
We’re referencing the Lyra project and when looking at it, button styles and text styles are at a minimum, with button styles not being used for the bulk of widgets that rely on material animations.
- We want to use the Common Button Widgets since they have more events and work with Common Input, but it requires a style. If one isn’t provided, UMG draws a gray background for the button by default. Is the intended behavior to set a “transparent” button style when you don’t want to use the style system (what Lyra does)?
- Should we be using Button Styles if we intend to do Material Parameter animations? We ran into difficulties accessing material parameters within the style vs traditional material setup, and noticed that Lyra skips the Button Style system entirely in these cases.
- If we should be using Text Styles, how should we approach dynamically updating properties of a Text Style, like color, when we want to modify it for a particular widget? We would like to avoid creating a new text style every time we need a set a new color if possible.
- Ex: We have a Button where our Text color should change based on the Hover State - With the color embedded into the Text Style, this looks like it requires us to set up separate styles with duplicate info except for the color value change, which then needs to be changed either in the animation timeline or the blueprint.
- What is the intended use for Text Styles within the Button Styles since there doesn’t seem to be any binded behavior that links this style to the button label. Is this meant to just be an accessible property in the style, that is manipulated via the button widget’s blueprint?