Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator ==

Returns true if two strings are equal.
Read time 2 minutesLast updated 11 days ago

Definition

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

operator ==(NativeText, FixedString32Bytes)

Returns true if two strings are equal.
public static bool operator ==(in NativeText a, in FixedString32Bytes b)

Parameters

A string to compare.

Another string to compare.

Returns

Type

Description

boolTrue if the two strings are equal.

Remarks

Two strings are equal if they have equal length and all their characters match.

operator ==(NativeText, FixedString64Bytes)

Returns true if two strings are equal.
public static bool operator ==(in NativeText a, in FixedString64Bytes b)

Parameters

A string to compare.

Another string to compare.

Returns

Type

Description

boolTrue if the two strings are equal.

Remarks

Two strings are equal if they have equal length and all their characters match.

operator ==(NativeText, FixedString128Bytes)

Returns true if two strings are equal.
public static bool operator ==(in NativeText a, in FixedString128Bytes b)

Parameters

A string to compare.

Another string to compare.

Returns

Type

Description

boolTrue if the two strings are equal.

Remarks

Two strings are equal if they have equal length and all their characters match.

operator ==(NativeText, FixedString512Bytes)

Returns true if two strings are equal.
public static bool operator ==(in NativeText a, in FixedString512Bytes b)

Parameters

A string to compare.

Another string to compare.

Returns

Type

Description

boolTrue if the two strings are equal.

Remarks

Two strings are equal if they have equal length and all their characters match.

operator ==(NativeText, FixedString4096Bytes)

Returns true if two strings are equal.
public static bool operator ==(in NativeText a, in FixedString4096Bytes b)

Parameters

A string to compare.

Another string to compare.

Returns

Type

Description

boolTrue if the two strings are equal.

Remarks

Two strings are equal if they have equal length and all their characters match.