cancel
Showing results for 
Search instead for 
Did you mean: 

Setting deafult value of AddSlider crashes app

kingarrilla
Explorer
var sliderPrefab = DebugUIBuilder.instance.AddSlider("some label", 0.1f, 30f, delegate (float f) { SliderAction(f); }, false);
sliderPrefab.GetComponentInChildren<Slider>().normalizedValue = 1f; // <<- this is culprit

//sliderPrefab.GetComponentInChildren<Slider>().value = 30f; // <<- this also crashes


crashes unity editor (2018.3.11f) and Android build for Quest with latest integration

any ideas on how to do this? 

Can anyone else reproduce it?



1 REPLY 1

kingarrilla
Explorer
just bumping this - can anyone help...

why does setting a slider value in the Oculus DebugUI cause a crash?