public void UpdateUI(Vector3 startWorld, Vector3 endWorld, CoordinateUIStyle.DimensionLineStyle style, CoordinateUIStyle.ColorSet colors, SketchStyle.State state) { _startWorld = startWorld; _endWorld = endWorld; _style = style; _state = state; _colors = colors; SetVerticesDirty(); }
public void UpdateUI(Vector3 positionWorld, Vector3 directionWorld, CoordinateUIStyle.CoordinateGizmoStyle style, CoordinateUIStyle.ColorSet colors, SketchStyle.State state, Type type) { _type = type; _positionWorld = positionWorld; _directionWorld = directionWorld; _style = style; _colors = colors; _state = state; SetVerticesDirty(); }
public void UpdateUI(string labelString, Vector3 labelPositionWorld, CoordinateUIStyle.LabelStyle style, CoordinateUIStyle.ColorSet colors, SketchStyle.State state) { _label.text = labelString; _label.color = colors.GetForState(state).Value; _label.fontSize = style.FontSize; _labelBackground.color = style.LabelBackground.Value; var anchoredPosition = WorldScreenTransformationHelper.WorldToUISpace(GetComponentInParent <Canvas>(), labelPositionWorld); GetComponent <RectTransform>().anchoredPosition = anchoredPosition; }