Question by 
               armandas2005 · Mar 18, 2021 at 10:45 AM · 
                colliderenter  
              
 
              LayerMask is not being detected
i made a script wich should detetct when my gameObject collides with the layer of my Ground, but when it collides with it, it is not being detected
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class BulletDestroying : MonoBehaviour
 {
     public LayerMask layerMask;
 
     private void OnTriggerEnter(Collider other)
     {
         if (other.gameObject.layer == layerMask)
         {
             Debug.Log("Detected Mask!");
         }
     }
 }
my Ground has the LayerMask and i declared everything in the inspector
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Box Collider for animating characters. 0 Answers
How to use Animation Event in this case ? 1 Answer
How do I make onCollisionStay work? 1 Answer
Trigger Collider is Triggering? 0 Answers
Trigger enter and directly Exit 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                