Global Variable


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


const SCNHitTestOption SCNHitTestSortResultsKey;


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



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