Class Leap::Unity::Examples::IgnoreCollisionsInChildren

class Leap.Unity.Examples.IgnoreCollisionsInChildren : public MonoBehaviour

This utility script scans through its Transform’s children and tells PhysX to ignore collisions between all pairs of Colliders it finds. This is particlarly useful, for example, for interfaces, where buttons shouldn’t collide with other buttons.

This is not the recommended strategy in general: It is much more optimal for your application to put interface objects on a layer and disable self-collision for that layer in your Physics settings (Edit / Project Settings / Physics).