GetComponent < 屬性大標>().屬性小標. 例如在取得物件位置時可以這樣寫. GameObject.GetComponent<Transform>().position.
確定! 回上一頁