Can you add multiple physics coliders to an object?

Can I add multiple 2d physics colliders to a floating ground piece for my 2d platformer? So, I have a normal ground collider on the whole thing, but add a slippery collider for the sides so my character doesn’t get stuck if he hits the edge, he just slides off.

Short answer:

no, you can’t add more than one collider to a single GameObject


Long Answer:

Your best bet here is to create a hierarchy of colliders. One way to achieve this:

public class ColliderChild : MonoBehaviour
{
    public event EventHandler onCollisionEnter;

    void OnCollisionEnter(Collision collision)
    {
        EventHandler handler = onCollisionEnter;
        if (handler != null)
            handler(this, EventArgs.Empty);
    }
}

public class ColliderParent : MonoBehaviour
{
    void Subscribe(ColliderChild child)
    {
        child.onCollisionEnter += OnChildCollisionEnter;
    }

    void Unsubscribe(ColliderChild child)
    {
        child.onCollisionEnter -= OnChildCollisionEnter;
    }

    void OnChildCollisionEnter(object source, EventArgs e)
    {
        // A child collided!
    }
}