Version: 2018.1
public bool IntersectRay (Ray ray);

Description

Does ray intersect this bounding box?

no example available in C#

public bool IntersectRay (Ray ray, out float distance);

Description

Does ray intersect this bounding box?

When the function returns true, the distance to the ray's origin will be returned in the distance parameter.