void OtherExamples() { // Does the layer mask contain layer 4? bool containsLayer4 = someLayerMask.ContainsLayer(4); // Get the bounds of all colliders in the level to clamp the camera later on Collider[] allColliders = FindObjectsOfType <Collider>(); Bounds levelBounds = UnityHelper.CombineColliderBounds(allColliders); // Find out how much the perspective camera can see at 10 unit away Vector2 viewportSizeAtDistance = Camera.main.CalculateViewportWorldSizeAtDistance(10); }