Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Set(int, bool)

Sets the bit at an index to 0 or 1.
Read time 1 minuteLast updated 6 days ago

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.