How to Ignore Layer Collisions Between Objects - Unity C# Tutorial

preview_player
Показать описание
In this short and simple Unity C# tutorial, I teach you guys how to ignore layer collisions between objects.

*Example script is in the pinned comment*

#unity #unity3d #gamedev

For more Unity tutorials like this or more videos in general - be sure to like, comment, and subscribe for more! 👍

Wishlist Bodhi 'n' Friends on Steam now:

Follow me on Twitter:

Try out my games:

My Website:

Subscribe to my Second Channel:

Join my Discord:

Facebook Page:
Рекомендации по теме
Комментарии
Автор

Example Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ignoreLayerCollision : MonoBehaviour
{
void Start()
{
Physics.IgnoreLayerCollision(6, 7);
//Collision between two layers is ignored
//In this example, Layer 6 & 7 are ignoring each other
}
}

Omogonix
Автор

This is great! thanks for doing this man. 💯

hazen
Автор

Is there going to be a tutorial on how to add this thing where the monster is doing the weeping angel from Doctor Who and other games doing the same thing. Where the monster chase you without looking at it, and they stop moving by just looking at the monster.

kingiwakes_official
Автор

Do you know how to make one camera see the light but the others dont?

kubzcz