ドキュメント

Unity Engine

Unity Engine

NeedToRenderForPicking(GameObject)

Checks whether a GameObject should be rendered in the current render picking callback.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool NeedToRenderForPicking(GameObject go)

Parameters

The GameObject to test.

Returns

Type

Description

boolTrue if the GameObject should be rendered.

Remarks

RenderPickingArgs.NeedToRenderForPicking
is similar to RenderObjectSetContains. This method checks whether a GameObject should be rendered or not.
If the current renderPickingType is RenderPickingType.RenderFromIgnoreSet, this method returns true if the given
go
is not contained in the ignore set. Otherwise, this method returns true if the given
go
is contained in the filter set.
Notice 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.