IsPickingDisabled
Checks the picking state of a GameObject and, optionally, its descendants.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
IsPickingDisabled(GameObject, bool)
Checks the picking state of a GameObject and, optionally, its descendants.
public bool IsPickingDisabled(GameObject gameObject, bool includeDescendants = false)
Parameters
GameObject to check.
Specify true to check the GameObject and all its descendants. Set to false to check the GameObject.
Returns
Type | Description |
|---|---|
| bool | When includeDescendants is true, this method returns true when the GameObject and all its descendants have picking disabled. When includeDescendants is false, this method returns true when the GameObject has picking disabled. |
Remarks
When includeDescendants is true, this method returns true when the GameObject and all its descendants have picking disabled. When includeDescendants is false, this method returns true when the GameObject is hidden.
IsPickingDisabled(Scene)
Checks the picking state of a GameObject and, optionally, its descendants.
public bool IsPickingDisabled(Scene scene)
Parameters
Returns
Type | Description |
|---|---|
| bool | When includeDescendants is true, this method returns true when the GameObject and all its descendants have picking disabled. When includeDescendants is false, this method returns true when the GameObject has picking disabled. |
Remarks
When includeDescendants is true, this method returns true when the GameObject and all its descendants have picking disabled. When includeDescendants is false, this method returns true when the GameObject is hidden.