文档

Unity Engine

Unity Engine

Set(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

pos

Index of the bit to set.

value

True for 1, false for 0.