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 及其所有后代的选取。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961