- Home /
Unity2D, OnTriggerEnter2D(Collision other){}, collision not detected, at least from what i can gather from the debug not appearing. Thanks(NEW)
help , my player is a trigger, the ontriggerenter2d is not working.=[. Thanks for all help, i am new to this .
Answer by Ashokkumar-M · Jul 04, 2017 at 08:57 AM
It should be,
OnTriggerEnter2D(Collider2D SheildPickup) (not as Collision2D SheildPickup)
Thanks for the help, i'm just confused on the 2d colliders in hierarchy i was thinking my player would be a trigger and my pickup object should have the collider without trigger. Is this correct or should i use different pattern.(At this moment my player has a trigger and my pickup has not got a trigger). I have tried this line before but something else was wrong so i changed, thanks for letting me know it was this specific.
if you were able to give me an example that would be appreciated.
@Ashokkumar-$$anonymous$$
Im not sure if my last comment submitted. Anyways in the hierarchy should my Player be the 2d box collider trigger, and my pick up be a regular 2d collider? And thanks for responding, this is my first game i want to complete.
@Ashokkumar-$$anonymous$$
Never $$anonymous$$d it works perfectly.Thanks so such.