📅  最后修改于: 2022-03-11 14:48:53.106000             🧑  作者: Mango
// for unity users only!
// use transform instead of GetComponent
void Start()
{
Vector3 LocalPosition = gameObject.GetComponent().position;
Vector3 GloabalPosition = gameObject.transform.position;
}