public void ReSizeBig() { float hour = _sleepingTime; // スクロールビュー RectTransform sRect = ScrollObject.GetComponent <RectTransform>(); var y2 = sRect.transform.position.y; sRect.sizeDelta = new Vector2(600 * hour, 186.3f); //サイズが変更できる // スクロール位置を初期化 if (onceDisplayFlag) { ScrollRect.horizontalNormalizedPosition = 0.0f; } RectTransform rect0 = IbikiMainGraph.GetComponent <RectTransform>(); var x = rect0.transform.position.x; var y = rect0.transform.position.y; rect0.sizeDelta = new Vector2(600 * hour, 227); if (onceDisplayFlag) { rect0.localPosition = new Vector3(600 * hour / 2f, 200f - 321f - 8.55f); } else { rect0.localPosition = new Vector3(600 * hour / 2, 200); } if (Output_Line.isRunningGraduallySetPointFlow()) { Debug.Log("描画中"); } else { Debug.Log("描画終了"); // 再描画する SetIbikiDataToLineGraph(dataList); } // 頭の位置 HeadDirGraphObject.GetComponent <HeadDirGraph> ().ResizeHeadDirDataBar(600 * hour); //グラフの時間軸も合わせて設定 Output_TimeLabel.SetIbikiAxis(ibikiTimeList); //目盛を調整 Output_TimeLabel.SetIbikiScroll(hour); StartCoroutine("UpdateGraphPositionResizeBig"); SeriesObject.SetActive(false); lineTouchiRect.sizeDelta = new Vector2(600 * hour, 3.0f); lineBottomRect.sizeDelta = new Vector2(600 * hour, 2.0f); line250ImageRect.sizeDelta = new Vector2(600 * hour, 2.0f); line500ImageRect.sizeDelta = new Vector2(600 * hour, 2.0f); line750ImageRect.sizeDelta = new Vector2(600 * hour, 2.0f); line1000ImageRect.sizeDelta = new Vector2(600 * hour, 2.0f); }