找回密码
 立即注册
查看: 264|回复: 0

unity使用技巧(4)

[复制链接]
发表于 2022-10-9 19:57 | 显示全部楼层 |阅读模式
脚本简述1:
1,this,当前脚本组件
2,this.gameObject ,当前物体
3,this.gameObject.name,当前物体的名字。
4,this.gameObject.transform。当前物体下的Transform组件
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-9-21 22:02 , Processed in 0.090324 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表