Type Alias

SCNHitTestOption

Options affecting the behavior of SceneKit hit-testing methods.

Declaration

typedef NSString *SCNHitTestOption;

Topics

Options

SCNHitTestBackFaceCullingKey

An option to ignore faces not oriented toward the camera.

SCNHitTestBoundingBoxOnlyKey

An option to search for objects by bounding box only.

SCNHitTestOptionCategoryBitMask

An option to search only for objects matching a specified bitmask.

SCNHitTestClipToZRangeKey

An option to search for objects only within the depth range of the current point of view.

SCNHitTestIgnoreChildNodesKey

An option to ignore child nodes when searching.

SCNHitTestIgnoreHiddenNodesKey

An option to ignore hidden nodes when searching.

SCNHitTestRootNodeKey

The root of the node hierarchy to be searched.

SCNHitTestOptionSearchMode

An option for the number and order of hit test results to provide.

SCNHitTestSearchMode

Possible values for the SCNHitTestOptionSearchMode option used with hit-testing methods.

Deprecated

SCNHitTestFirstFoundOnlyKey

An option to return only the first object found.

SCNHitTestSortResultsKey

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

See Also

Working With Projected Scene Contents

- hitTest:options:

Searches the renderer’s scene for objects corresponding to a point in the rendered image.

Required.

- isNodeInsideFrustum:withPointOfView:

Returns a Boolean value indicating whether a node might be visible from a specified point of view.

Required.

- nodesInsideFrustumWithPointOfView:

Returns all nodes that might be visible from a specified point of view.

Required.

- projectPoint:

Projects a point from the 3D world coordinate system of the scene to the 2D pixel coordinate system of the renderer.

Required.

- unprojectPoint:

Unprojects a point from the 2D pixel coordinate system of the renderer to the 3D world coordinate system of the scene.

Required.

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