private void Awake() { getArrowRot = scriptObject.GetComponent <ArrayControl>(); Quaternion target = Quaternion.Euler(0.0f, 0.0f, -90.0f); arrowTransform.rotation = target; }
private void Awake() { getArrowRot = scriptObject.GetComponent <ArrayControl>(); Quaternion target = Quaternion.Euler(0.0f, 0.0f, -90.0f); arrowTransform.rotation = target; //arrowTransform.rotation = Quaternion.AngleAxis(-180.0f, Vector3.up); }
private void SetupArrayControl(ExpressionInfo expressionInfo) { if (_arrCtl != null && _arrCtl.Tag == expressionInfo) { return; } SetRotationOptions(_dimensions.Length); ArrayControl newArrCtl = ArrayControl.GetArrayControl(_dimensions.Length); if (newArrCtl == null) { return; } else { _arrCtl = newArrCtl; } _arrCtl.Formatter = formatterTextBox.Text; _arrCtl.CaptionBuilder = GetCaptionBuilder(_arrCtl.Formatter); _arrCtl.CellHeight = GetCellSize(cellHeightTextBox.Text, 40); _arrCtl.CellWidth = GetCellSize(cellWidthTextBox.Text, 60); _arrCtl.LeftBracket = _arrayLoader.LeftBracket; _arrCtl.RightBracket = _arrayLoader.RightBracket; _arrCtl.CellClick += arrCtl_CellClick; _arrCtl.SetControlData(_data); _arrCtl.Padding = new Thickness(8); _arrCtl.Width += 16; _arrCtl.Height += 16; _arrCtl.Tag = expressionInfo; }