Unity Engine documentationScript ReferenceUnity.CollectionsNativeBitArraySet(int, bool)Sets the bit at an index to 0 or 1.阅读时间1 分钟最后更新于 1 个月前Definition Type: Method Namespace: Unity.Collections Assembly: UnityEngine.ManagedKernelModule public void Set(int pos, bool value) Parameters posintIndex of the bit to set.valueboolTrue for 1, false for 0.