RenderPickingResult
Constructs a RenderPickingResult value.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
RenderPickingResult(int, ResolvePickingCallback)
Constructs a value.
RenderPickingResultpublic RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingCallback resolver)
Parameters
The number of picking indices used.
The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a HandleUtility.ResolvePickingCallback or a HandleUtility.ResolvePickingWithWorldPositionCallback based on whether you need the information of the world space position or the depth value for where the picking occurred.
Remarks
Additional Resources: RenderPickingResult.
RenderPickingResult(int, ResolvePickingWithWorldPositionCallback)
Constructs a value.
RenderPickingResultpublic RenderPickingResult(int renderedPickingIndexCount, HandleUtility.ResolvePickingWithWorldPositionCallback resolver)
Parameters
The number of picking indices used.
The callback to invoke for resolving a picking index to a GameObject reference. This callback can be provided either as a HandleUtility.ResolvePickingCallback or a HandleUtility.ResolvePickingWithWorldPositionCallback based on whether you need the information of the world space position or the depth value for where the picking occurred.
Remarks
Additional Resources: RenderPickingResult.