private void Start() { this.AddInputCB(); sliderX.Init(OnSliderChangedX); sliderY.Init(OnSliderChangedY); sliderZ.Init(OnSliderChangedZ); textX.Init(OnTextChangedX); textY.Init(OnTextChangedY); textZ.Init(OnTextChangedZ); sliderX.minValue = -range; sliderX.maxValue = range; sliderY.minValue = -range; sliderY.maxValue = range; sliderZ.minValue = -range; sliderZ.maxValue = range; control.Init(OnToggleControl, true); btnSetOrigin.Init(OnSetOrigin); UIDOFEditor.I.onDropdownChanged += () => { if (control.isOn) { GizmosAxis.I.controlObj = UIDOFEditor.I.ast.transform; } UpdateValueDisplay(); }; sliderSens.Init(sensRange, OnSensChanged); textSens.Init(OnSensChanged); }
void Start() { this.AddInputCB(); btnConvertToRelativePos.Init(SetAllCurveToLinear); btnGetTPose.Init(GetTPose); }