Comment on page
FloatGrids has 10 different styles of buttons plus three styles for icon buttons.
Use Primitives prefabs to customize all the variants at once
Use the variants in your scene
- Primitive Large
- Primitive Medium
- Primitive Small
Find them in FloatGrids/Design System/Customization/Primitive UI Components/Button Primitive
Find them in FloatGrids/Design System/UI Components/Button
You can add icons to your button by activating the game object Icon Left/Right. It'll automatically align and respect margins.
- Edit the Primitive Button prefab to change size, spaces, corners and font styles to all buttons at once.
- Use -Filled sprites to change corners. Ex: use corners-8px-Filled sprite in the primitive prefabs to change all the corners to 8px.
- Edit each variant to customize color and icons.
Good to know
Editing the corners in the Primitive Button prefabs won't work for Secondary and Outlined variants since they use outlined borders. You must edit the variants instead.