文档

Unity Engine

Unity Engine

Equals(void*, void*, in TypeInfo)

Compares two component types.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

Equals(void*, void*, TypeInfo)

public static bool Equals(void* lhsPtr, void* rhsPtr, in FastEquality.TypeInfo typeInfo)

Parameters

lhsPtr

Pointer to the component on the left-side of the comparison.

rhsPtr

Pointer to the component on the right-side of the comparison.

typeInfo

TypeInfo to provide the Equals method to invoke.

Returns

Type

Description

boolReturns true if the components are equal. False otherwise.