Version: 2023.2

SceneVisibilityManager.IsPickingDisabledOnAllDescendants

切换到手册
public bool IsPickingDisabledOnAllDescendants (SceneManagement.Scene scene);

参数

scene 要检查的场景。

返回

bool 如果已禁用了所有后代的选取,则返回 true。

描述

检查是否禁用了 GameObject 所有后代的选取。


public bool IsPickingDisabledOnAllDescendants (GameObject gameObject);

参数

gameObject 要检查的 GameObject。

返回

bool 如果已禁用了场景的根 GameObjects 及其所有后代的选取,则返回 true。

描述

检查在场景中是否已禁用了根 GameObjects 及其所有后代的选取。