obj.transform.position
时间: 2023-10-19 16:55:21 浏览: 110
ChangeOfPosition
obj.transform.position是一个用于获取或设置物体在世界坐标系中的位置的属性。它返回一个Vector3类型的值,包含了物体在x、y和z轴上的坐标值。这个属性可以用于获取物体的当前位置,也可以用于修改物体的位置。引用\[2\]中提到,transform.position是一个值类型,所以对其进行修改时需要先将其赋值给一个新的变量,然后修改这个新变量的值,最后再将新的变量赋值给transform.position来实现位置的修改。
#### 引用[.reference_title]
- *1* [unity导入模型的transform.position和外框renderer.center不一样](https://blog.csdn.net/xu20082100226/article/details/50224891)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [transform.position坐标更改](https://blog.csdn.net/jjqqwfj/article/details/76359243)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Unity3D的四种坐标系](https://blog.csdn.net/luxiaoyu_sdc/article/details/13168497)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文