Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
kingarrilla's avatar
kingarrilla
Explorer
6 years ago

Setting deafult value of AddSlider crashes app

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

Replies have been turned off for this discussion
  • just bumping this - can anyone help...

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