I have an object with a box collider and a sphere collider.
Now my question, is it possible to differ from these two colliders on a collision
information, like OnCollisionEnter, so that for example somthing happens only if
an other object enters the box collider and ignores the sphere collider?
I know that i could also make empty game objects and send information to parent object,
but in my case it would be better to have it on the same object.
That depends on your definition of ‘better’. If you can’t do it, it’s not better. You could try and see if you get the event, and see if you can determine which type of collider it was (use GetType() maybe?)
This way you can split the code up between the two different colliders, while still having them on the same compound rigidbody! (I assume it’s a compound rigidbody)