文档

Unity Engine

Unity Engine

CopyFrom

Copies all elements of specified container to array.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

CopyFrom<T>(NativeArray<T>, NativeList<T>)

Copies all elements of specified container to array.
public static void CopyFrom<T>(this ref NativeArray<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>

Parameters

Container to copy to.

An container to copy into this array.

CopyFrom<T>(NativeArray<T>, NativeHashSet<T>)

Copies all elements of specified container to array.
public static void CopyFrom<T>(this ref NativeArray<T> container, in NativeHashSet<T> other) where T : unmanaged, IEquatable<T>

Parameters

Container to copy to.

An container to copy into this array.

CopyFrom<T>(NativeArray<T>, UnsafeHashSet<T>)

Copies all elements of specified container to array.
public static void CopyFrom<T>(this ref NativeArray<T> container, in UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>

Parameters

Container to copy to.

An container to copy into this array.