# Equals

> Computes whether or not this UniqueStyleString is identical to the other given UniqueStyleString.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## Equals(UniqueStyleString)

Computes whether or not this UniqueStyleString is identical to the other given UniqueStyleString.

```csharp
public bool Equals(UniqueStyleString other)
```

### Parameters

**** (\[UniqueStyleString]\(/engine/6000.6/script-reference/unityengine/uielements/uniquestylestring)): The other UniqueStyleString compared for equality

### Returns

| Type                                                          | Description                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both UniqueStyleStrings represent underlying string values that are equal |

## Equals(Object)

Computes whether or not this UniqueStyleString is identical another given object.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object compared for equality

### Returns

| Type                                                          | Description                                                                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the compared object is a UniqueStyleString and both UniqueStyleStrings represent underlying string values that are equal. |

### Remarks

Additional Resources: [UniqueStyleString.Equals](/engine/6000.6/script-reference/unityengine/uielements/uniquestylestring/equals.md)
