public void SetDarkMode(bool dark) { posX.SetDarkMode(dark); posY.SetDarkMode(dark); posZ.SetDarkMode(dark); orX.SetDarkMode(dark); orY.SetDarkMode(dark); orZ.SetDarkMode(dark); orW.SetDarkMode(dark); }
/// <summary> /// Updates list of joints in expert block /// </summary> private void UpdateJointsList() { DestroyJointsFields(); foreach (IO.Swagger.Model.Joint joint in joints.Joints) { LabeledInput labeledInput = Instantiate(GameManager.Instance.LabeledFloatInput, JointsDynamicList.transform).GetComponent <LabeledInput>(); labeledInput.SetLabel(joint.Name, joint.Name); NumberFormatInfo numberFormatInfo = new NumberFormatInfo(); numberFormatInfo.NumberDecimalSeparator = "."; labeledInput.SetValue(joint.Value.ToString(numberFormatInfo)); //labeledInput.Input.placeholder.color = Color.white; // text object of TMP input cannot be accessed directly //labeledInput.Input.GetComponentsInChildren<TMPro.TextMeshProUGUI>() // .First(c => c.gameObject.name == "Text").color = Color.white; labeledInput.SetDarkMode(false); } }