Enabling and Disabling Components

Tutorial

·

Beginner

·

+10XP

·

5 mins

·

(3370)

Unity Technologies

Enabling and Disabling Components

How to enable and disable components via script during runtime.

This tutorial is included in the Beginner Scripting project.

Previous: Vector Maths

Next: Activating GameObjects

Languages available:

1. Enabling and Disabling Components


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

Complete this tutorial