Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ArraysEqual<T>(NativeArray<T>, NativeArray<T>)

Returns true if this array and another have equal length and content.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static bool ArraysEqual<T>(this NativeArray<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>

Parameters

The array to compare for equality.

The other array to compare for equality.

Returns

Type

Description

boolTrue if the arrays have equal length and content.