write me a c# script for unity that will take a mixer and edit a particular mixer groups…
- User
write me a c# script for unity that will take a mixer and edit a particular mixer groups volume using a michsky ui reach slider and tell me the min and max to set the slider or set it programmically
Workflow Reach UI uses the native UGUI slider as a base, but we’ve added some cool features to it.
Saving Data You can save the slider value by enabling the ‘Save Value’ option. Note that each slider must have its own unique ‘Save Key’ value. Otherwise, there may be conflict(s) between the sliders.
Scripting using UnityEngine; using Michsky.UI.Reach; // Reach UI namespace
public class SampleClass : MonoBehaviour { [SerializeField] private SliderManager mySlider;
void Start() { // Set the current value mySlider.mainSlider.value = 50; // Set the min and max value mySlider.mainSlider.minValue = 0; mySlider.mainSlider.maxValue = 100; // Rounds the given value to the label mySlider.useRoundValue = false; // Adds percentage indicator mySlider.usePercent = false; // Add progress bar events mySlider.mainSlider.onValueChanged.AddListener(TestFunction); } void TestFunction(float value) { Debug.Log("Current value: " + value.ToString()); }}
above is the sliders info
- Assistant
- User
'SliderManager' does not contain a definition for 'uniqueSaveKey' and no accessible extension method 'uniqueSaveKey' accepting a first argument of type 'SliderManager' could be found (are you missing a using directive or an assembly reference?)
- Assistant