NeedToRenderForPicking(GameObject)
Checks whether a GameObject should be rendered in the current render picking callback.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public bool NeedToRenderForPicking(GameObject go)
Parameters
The GameObject to test.
Returns
Type | Description |
|---|---|
| bool | True if the GameObject should be rendered. |
Remarks
RenderPickingArgs.NeedToRenderForPickingIf the current renderPickingType is RenderPickingType.RenderFromIgnoreSet, this method returns true if the given is not contained in the ignore set. Otherwise, this method returns true if the given is contained in the filter set.
gogoNotice that for the RenderPickingType.RenderFromIgnoreSet type, this method returns true for all GameObjects if it is not contained in the ignore set. However, you are only required to handle the rendering of the custom geometries your callback is set to render.