- Home /
Question by
Fuzzy_Puppy · Jul 10, 2021 at 05:40 AM ·
boxcollider2d
make a boxcollider2D temporarily isTrigger
when mega man teleports in, he can go thru walls until he reaches the place he's supposed to land, then his hitbox becomes normal. how do you make a boxcollider2D temporarily isTrigger?
Comment
Best Answer
Answer by Zottic · Jul 10, 2021 at 05:43 AM
You can use
Collider.isTrigger = true;
And set it back to normal with
Collider.isTrigger = false;
Your answer