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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -