---
title: Equals
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/discretetimeinterval/equals
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/discretetimeinterval/equals.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:18:07.312Z
locale: en-us
---

# Equals

> Determines whether this interval equals another object.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

## Equals(Object)

Determines whether this interval equals another object.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare with this interval.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `o` is a [DiscreteTimeInterval](/engine/7000.0/script-reference/unity/animations/discretetimeinterval.md) with the same [DiscreteTimeInterval.Start](/engine/7000.0/script-reference/unity/animations/discretetimeinterval/start.md) and [DiscreteTimeInterval.End](/engine/7000.0/script-reference/unity/animations/discretetimeinterval/end.md). Otherwise, `false`, including when `o` is another type or `null`. |

## Equals(DiscreteTimeInterval)

Determines whether this interval has the same start and end as another interval.

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

### Parameters

**** (\[DiscreteTimeInterval]\(/engine/7000.0/script-reference/unity/animations/discretetimeinterval)): The interval to compare with this interval.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `other` has the same [DiscreteTimeInterval.Start](/engine/7000.0/script-reference/unity/animations/discretetimeinterval/start.md) and [DiscreteTimeInterval.End](/engine/7000.0/script-reference/unity/animations/discretetimeinterval/end.md). Otherwise, `false`. |
