private void CreateAxisObject(int idx) { createdAxis = Instantiate(axisPrefab) as GameObject; axis = createdAxis.GetComponent <Axis>(); axis.Init(sceneManager.dataObject, idx, false); axis.tag = "Axis"; // axis.HideHandles(); sceneManager.AddAxis(axis); createdAxis.transform.SetParent(transform); createdAxis.transform.localPosition = new Vector3(0, 0, 0.03f); createdAxis.transform.localEulerAngles = new Vector3(0, 270, 0); }