Method Equals
Equals<T>(ref T, ref T)
Compares two component instances to one another
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(Entity)})]
public static bool Equals<T>(ref T left, ref T right)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T | left | Left-hand side of the comparison |
| T | right | Right-hand side of the comparison |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the types are equal. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the component instances |
Equals(Void*, Void*, TypeIndex)
Compares two component instances to one another
Declaration
[GenerateTestsForBurstCompatibility]
public static bool Equals(void *left, void *right, TypeIndex typeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Void* | left | Left-hand side of the comparison |
| Void* | right | Right-hand side of the comparison |
| TypeIndex | typeIndex | TypeIndex for the two instances being compared |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the types are equal. |
Equals(Object, Object, TypeIndex)
Compares two component instances to one another
Declaration
public static bool Equals(object left, object right, TypeIndex typeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | left | Left-hand side of the comparison |
| Object | right | Right-hand side of the comparison |
| TypeIndex | typeIndex | TypeIndex for the two instances being compared |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the types are equal. |
Equals(Object, Void*, TypeIndex)
Compares two component instances to one another
Declaration
public static bool Equals(object left, void *right, TypeIndex typeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | left | Left-hand side of the comparison |
| Void* | right | Right-hand side of the comparison |
| TypeIndex | typeIndex | TypeIndex for the two instances being compared |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the types are equal. |