GetComponent

Tutorial

·

Beginner

·

+0XP

·

5 mins

·

(168)

Unity Technologies

GetComponent

如何使用 GetComponent 函数来处理其他脚本或组件的属性。

本教程包含在“初级编程”项目中。

上一教程:OnMouseDown

下一教程:Delta Time

Languages available:

1. GetComponent


UsingOtherComponents


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

AnotherScript


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

YetAnotherScript


[@portabletext/react] Unknown block type "code", specify a component for it in the `components.types` prop

Complete this tutorial