unity3d - Unity 2d Box Collider Not Triggering C# -


using unity 4.3.4f

scenario: i'm attempting creating background moves camera object using box collider 2d , rigidbody 2d attributes in order create feel background looping camera moves across screen.

the background elements set trigger , object on camera includes detection script has kinematic 2d rigidbody. test if works added below script in c# see if collide.

void ontriggerenter2d(collider2d collider) {     debug.log ("collision: " + collider.name); } 

in theory should of course print name of object collider makes contact with, right? reason i'm getting no output log. suggestions on i'm not seeing here or document review figure out problem?

you have capitalization issue.

void ontriggerenter2d(collider2d other) {     //your handler code goes here! } 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -