# BoundProperty

> A BoundProperty is a safe handle to read and write value in a generic way from any Unity components.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Animations](/engine/6000.7/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule
* **Implements:** [IEquatable\<BoundProperty>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<BoundProperty>](https://learn.microsoft.com/dotnet/api/system.icomparable-1)

```csharp
public readonly struct BoundProperty : IEquatable<BoundProperty>, IComparable<BoundProperty>
```

## Properties

| Property                                                                                   | Description                                                               |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| [index](/engine/6000.7/script-reference/unityengine/animations/boundproperty/index.md)     | The index of this BoundProperty to the internal list of bound properties. |
| [version](/engine/6000.7/script-reference/unityengine/animations/boundproperty/version.md) | The version of the BoundProperty.                                         |

## Static Properties

| Property                                                                             | Description                                                      |
| ------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
| [Null](/engine/6000.7/script-reference/unityengine/animations/boundproperty/null.md) | An empty BoundProperty object that does not refer to a property. |

## Methods

| Method                                                                                             | Description                                                           |
| -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [CompareTo](/engine/6000.7/script-reference/unityengine/animations/boundproperty/compareto.md)     | Compares this BoundProperty to a specific BoundProperty.              |
| [Equals](/engine/6000.7/script-reference/unityengine/animations/boundproperty/equals.md)           | Checks if this BoundProperty equals a specified BoundProperty object. |
| [GetHashCode](/engine/6000.7/script-reference/unityengine/animations/boundproperty/gethashcode.md) | Retrieves a unique hash based on this BoundProperty.                  |

## Operators

| Operator                                                                                             | Description                                                                |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/animations/boundproperty/op-equality.md)   | BoundProperty objects are equal if they refer to the same property.        |
| [operator !=](/engine/6000.7/script-reference/unityengine/animations/boundproperty/op-inequality.md) | BoundProperty objects are not equal if they refer to different properties. |
