Skip to content

Getting Started꞉ Slider Item

Zach Kinstner edited this page Nov 2, 2016 · 2 revisions

On this page, you'll learn how to create a slider item and its renderer.

Instructions

Slider Item 📷 Building a new slider item

  1. Complete the Scene Setup steps.
  2. Create an empty GameObject named SliderItem.
  3. Add the HoverItemBuilder component to SliderItem.
    1. Change the "Item Type" property to "Slider".
    2. Click the "Build Item and Renderer" button.
  4. Find the HoverItemDataSlider component that on SliderItem.
    1. Change the "Label" property to "Item B".
  5. Adjust the SliderItem transform to the desired position and rotation.

Optional

  • Adjust the HoverItemBuilder component's "Renderer Prefab" properties. The names of the renderer prefabs include "Rect" or "Arc", which describes the shape of the graphics.
  • Toggle the HoverItemDataSlider component's "Slider Range Value" property.
  • Change the HoverItem component's "Item Type" property. The item (and possibly its renderer) will automatically update to support the selected type.

Details

Clone this wiki locally