Raycasting with Playmaker

Опубликовано: 21 Март 2026
на канале: Hutong Games
15,687
379

In this video, you will learn what a raycast is and how to use them in Unity with Playmaker.

Timestamps
00:00 - Intro
00:22 - What is a raycast?
00:38 - Examples of raycasts in games
00:45 - Setting up the scene
01:19 - Seeing the raycast ray in action
02:13 - Send an event when the ray hits something
02:52 - Store a bool value if the ray hits something
03:08 - Locking the window to move other objects
03:36 - Storing gameobjects hit by raycast in variables
04:03 - Adjusting the ray distance (length of ray)
04:48 - Getting the exact position (vector 3) the ray hit
05:48 - Using layermasks with the raycast
07:48 - Getting multiple objects with the RaycastAll action

For more help visit:
Playmaker forums @ https://hutonggames.com/playmakerforu...
Playmaker Discord @   / discord  

Find us on Twitter @HutongGames