Documentation

Unity Engine

Unity Engine

Equals(void*, void*, in TypeInfo)

Compares two component types.
Read time 1 minuteLast updated 5 days ago

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.