Global Variable

SCNHitTestSortResultsKey

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

Declaration

const SCNHitTestOption SCNHitTestSortResultsKey;

Discussion

The value for this key is an NSNumber object containing a Boolean value. The default value is YES, specifying that the array of hit-test results is sorted from nearest to farthest. (When using the hitTestWithSegmentFromPoint:toPoint:options: method, “nearest” is defined as closer to the point specified in the first parameter.) If you specify NO, results are returned in an arbitrary order.

See Also

Deprecated

SCNHitTestFirstFoundOnlyKey

An option to return only the first object found.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software