Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeStream(int, AllocatorHandle)

Initializes and returns an instance of NativeStream.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public NativeStream(int bufferCount, AllocatorManager.AllocatorHandle allocator)

Parameters

bufferCount

The number of buffers to give the stream. You usually want one buffer for each thread that will read or write the stream.

The allocator to use.