unity this
时间: 2023-10-06 19:06:23 浏览: 132
Unity SKFramework开发框架
在Unity中,关键字"this"指的是当前对象的引用。它可以用来访问当前对象的属性、方法或索引器。例如,可以使用"this.属性名"来访问当前对象的属性,或者使用"this.方法名()"来调用当前对象的方法。 这在C#中是一种常见的用法。当你需要在对象内部引用自身时,可以使用关键字"this"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Unity2018Patcher](https://download.csdn.net/download/z407574364/10714741)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [unity的C#学习——属性、索引器和this关键字](https://blog.csdn.net/qq_50571974/article/details/129865190)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文