文档

Unity Engine

Unity Engine

operator ==

Returns true if two strings are equal.
阅读时间2 分钟最后更新于 1 个月前

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.