GetComponent

Tutorial

·

Beginner

·

+10XP

·

5 mins

·

(2133)

Unity Technologies

GetComponent

How to use the GetComponent function to address properties of other scripts or components.

This tutorial is included in the Beginner Scripting project.

Previous: OnMouseDown

Next: 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