IsPickingDisabledOnAllDescendants
Checks whether all the descendants of a GameObject have picking disabled.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
IsPickingDisabledOnAllDescendants(Scene)
Checks whether all the descendants of a GameObject have picking disabled.
public bool IsPickingDisabledOnAllDescendants(Scene scene)
Parameters
Scene to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all descendants have picking disabled. |
IsPickingDisabledOnAllDescendants(GameObject)
Checks whether root GameObjects, and all their descendants, have picking disabled in a scene.
public bool IsPickingDisabledOnAllDescendants(GameObject gameObject)
Parameters
GameObject to check.
Returns
Type | Description |
|---|---|
| bool | Returns true if all root GameObjects of the Scene and all their descendants have picking disabled. |