Question by
Raviraja190 · Jun 21, 2016 at 09:02 PM ·
colliderbuttontriggers
Does not contain definition of isTrigger?
void OnTriggetExit(Collider other)
{
if(other.tag =="Player")
{
bossController.bossAwake = true;
collider.isTrigger = false;
Comment
Best Answer
Answer by jgodfrey · Jun 21, 2016 at 10:47 PM
The collider instance that gets passed into that script is named "other". So, to access it...
other.isTrigger = false;
Your answer
![](https://koobas.hobune.stream/wayback/20220612083412im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Calling "OnTriggerEnter" when a parent object has a rigidbody 0 Answers
Making text appear by pressing a button, only when player is close to the object 1 Answer
how do I use the same triggercollider for multiple objects? 0 Answers
(C#) Bullet Damage , OnCollisionTrigger2D not working,(C#) Bullet Damage, Trigger not working. 2 Answers
OnTriggerExit does not work 0 Answers