-
Notifications
You must be signed in to change notification settings - Fork 162
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.
- Complete the Scene Setup steps.
- Create an empty GameObject named SliderItem.
- Add the
HoverItemBuilder
component to SliderItem.- Change the "Item Type" property to "Slider".
- Click the "Build Item and Renderer" button.
- Find the
HoverItemDataSlider
component that on SliderItem.- Change the "Label" property to "Item B".
- Adjust the SliderItem transform to the desired position and rotation.
- 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.
- The Items page describes how to adjust the item's data, events, etc.
- The Renderers page describes how to adjust the item's appearance.
- See the GettingStarted-CheckboxAndSliderItems example scene.
General
Features
Modules
Other