Version: 2023.2
public void TogglePicking (GameObject gameObject, bool includeDescendants);

参数

gameObject 要切换选取能力所在的 GameObject。
includeDescendants 是否包含后代。

描述

切换 GameObject 的选取能力。

当 includeDescendants 为 true 时,后代被设置为与父 GameObject 相同的选取状态。当 includeDescendants 为 false 时,后代的选取状态不受影响。