Unity Learn home
View Tutorial Content

Detecting Collisions with Collectibles

Tutorial
Beginner
+10 XP
15 Mins
(9907)
Overview
Summary
In this tutorial, you’ll:
  • Revise your PlayerController script to make PickUpGameObjects disappear when they collide with the Player sphere
  • Tag PickUp GameObjects and write conditional statements to make sure they’re the only things that disappear
  • Set the Prefab PickUp Collider as a trigger and add a Rigidbody component, to make the collectibles work properly
Select your Unity version
Last updated: December 16, 2021
2020.2
2020.1
2019.4
2019.3
6
6 Preview
6 Beta
2023.2
2023.1
2022.3
Language
English
Detecting Collisions with Collectibles