Back to Blog
April 3, 2024

DualSlider【unity】

DualSlider【unity】

In this article, I will explain how to use dual sliders in Unity.

Dual sliders are a type of user interface element that allows users to select a value between two extremes. They are often used to adjust the volume of sound or the brightness of an image.

To use dual sliders in Unity, you can use the following steps:

1. **Add the Dual Slider asset to your project.** You can find this asset in the Unity Asset Store.

2. **Create a new GameObject and attach the Dual Slider component to it.**

3. **Configure the properties of the Dual Slider component.** You can set the minimum and maximum values of the slider, as well as the starting value.

4. **Add the Dual Slider to your scene.** You can do this by dragging the GameObject from the Hierarchy window to the Scene view.

5. **Use the Dual Slider in your code.** You can get the current value of the slider by calling the `GetValue()` method, and you can set the value of the slider by calling the `SetValue()` method.

Here is an example of how to use dual sliders in Unity:

```

// Create a new GameObject and attach the Dual Slider component to it.

GameObject slider = new GameObject();

slider.AddComponent();

// Configure the properties of the Dual Slider component.

slider.MinValue = 0;

slider.MaxValue = 100;

slider.Value = 50;

// Add the Dual Slider to your scene.

transform.position = Vector3.zero;

// Use the Dual Slider in your code.

float value = slider.GetValue();

slider.SetValue(value);

```

I hope this article has been helpful. If you have any questions, please leave a comment below.

Related Articles

Voice-of-customer
VOC.AI vs. SmartScout: Which Amazon Review Analysis Tool is Right for You?

VOC.AI vs SmartScout: In-Depth Comparison for Amazon Sellers in 2026For Amazon sellers in 2026, choosing the right tool to leverage customer reviews and marketplace data is critical for success. VOC.AI vs SmartScout is a comparison that frequently arises among sellers aiming to gain actionable insig

Jan 9, 2026
Read more
Voice-of-customer
VOC.AI vs. Jungle Scout: Which Amazon Review Analysis Tool is Right for You?

VOC.AI vs Jungle Scout: In-Depth Comparison of Amazon Review Analysis Tools for 2026For Amazon sellers in 2026, leveraging customer reviews is critical for product success and brand growth. Two leading tools—VOC.AI and Jungle Scout—offer distinct approaches to review analysis. While Jungle Scout is

Jan 9, 2026
Read more
Voice-of-customer
VOC.AI vs. Helium 10: Which Amazon Review Analysis Tool is Right for You?

VOC.AI vs Helium 10: The Ultimate Comparison for Amazon Review Analysis in 2026In 2026, Amazon sellers face a rapidly evolving landscape where understanding customer feedback is crucial for long-term success. The main keyword, Helium 10 alternative, is increasingly searched by sellers seeking more n

Jan 9, 2026
Read more
VOC AI Inc. 160 E Tasman Drive Suite 202 San Jose, CA, 95134 Copyright © 2026 VOC AI Inc.All Rights Reserved. Terms & Conditions Privacy Policy
This website uses cookies
VOC AI uses cookies to ensure the website works properly, to store some information about your preferences, devices, and past actions. This data is aggregated or statistical, which means that we will not be able to identify you individually. You can find more details about the cookies we use and how to withdraw consent in our Privacy Policy.
We use Google Analytics to improve user experience on our website. By continuing to use our site, you consent to the use of cookies and data collection by Google Analytics.
Are you happy to accept these cookies?
Accept all cookies
Reject all cookies