Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity check collider layer

 function OnCollisionEnter(collision : Collision)
 {
     if (collision.collider.gameObject.layer == LayerMask.NameToLayer("LAYER_NAME"))
     {
          Debug.Log("Touched a rail");
     }
 }
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf round button 
Csharp :: c# app path 
Csharp :: c# read text file to list string 
Csharp :: Point to mouse 2D Unity 
Csharp :: convert to base64 c# 
Csharp :: Changing datagridview cell color dynamically 
Csharp :: c# textboxaccept only numbers 
Csharp :: disappear after time unity 
Csharp :: textmeshpro text 
Csharp :: C# get pc language 
Csharp :: wpf label text in center 
Csharp :: unity play particle system 
Csharp :: string to int c# unity 
Csharp :: using variables from other procedures C# 
Csharp :: c# list to string 
Csharp :: left moust click unity 
Csharp :: c# loop through datatable 
Csharp :: linq unique count property 
Csharp :: unity Protected 
Csharp :: Csharp cast string to double 
Csharp :: c# remove non-alphanumeric characters from string 
Csharp :: get path c# 
Csharp :: c# reverse string 
Csharp :: insert variables into string c# 
Csharp :: itextsharp landscape a4 
Csharp :: unity array to list 
Csharp :: unity left mouse button 
Csharp :: How To Copy a text C# unity 
Csharp :: get current directory cosmos 
Csharp :: check c# date for 0001/01/01 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =