Global Variable

SCNHitTestFirstFoundOnlyKey

An option to return only the first object found.

Declaration

const SCNHitTestOption SCNHitTestFirstFoundOnlyKey;

Discussion

The value for this key is a NSNumber object containing a Boolean value. The default value is NO, specifying that hit-testing should return all objects found. If you specify YES, the array of hit-test results contains only the first object found (which is not necessarily the nearest).

See Also

Deprecated

SCNHitTestSortResultsKey

An option to sort the results of a hit-test.