Skip to content
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

Create "Rect" shape renderer with triangle-tab geometry #50

Closed
zachkinstner opened this issue Nov 16, 2016 · 1 comment
Closed

Create "Rect" shape renderer with triangle-tab geometry #50

zachkinstner opened this issue Nov 16, 2016 · 1 comment
Assignees

Comments

@zachkinstner
Copy link
Member

The goal is to have a built-in renderer that can support tab graphics like the ones in "Firework Factory VR":

Loading animation...

@zachkinstner
Copy link
Member Author

The new renderer is available via the HoverAlphaButtonRectRenderer-Tab prefab. It includes a couple new components for building the tabbed mesh, updating the meshes to have consistent tab sizes, etc.

The tab renderer is meant for use with either Radio or Checkbox items. The HoverAlphaFillTabUpdater component (quite a name, I know...) on the Fill object is responsible for updating all the meshes, including setting them to an alternate color (and keeping the "edge" visible) when the radio/checkbox is selected. The tabs use this approach by default, rather than showing a radio/checkbox icon.

This animation is from the RectTabRowLayout scene in "HoverDemos":

tabrow

The renderer can support any combination of N/S/E/W tab triangles. The tab "outward" distance and "thickness" distance (perpendicular to "outward") are configurable, also. Here's an example with all four tab directions enabled (with the GameObject selected to show the mesh structure):

alltabdirections

@zachkinstner zachkinstner removed this from the Near-Term milestone Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant