Answers for "on trigger stay unity"

C#
1

on trigger stay unity

private void OnTriggerStay(Collider other)
{
	// Do some stuff
}
Posted by: Guest on April-21-2021
0

unity while in trigger

void OnTriggerStay(Collider other)
 {
   Debug.Log("This will be called every frame");
   if (Input.GetKeyDown("space") && other.tag == "TalkCylinder")          
   {
     Debug.Log("Talking");          
   }      
 }
Posted by: Guest on June-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language