# PropertyPathPart

> A PropertyPathPart represents a single element of the path.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Properties](/engine/6000.0/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **Implements:** [IEquatable\<PropertyPathPart>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct PropertyPathPart : IEquatable<PropertyPathPart>
```

## Remarks

[PropertyPathPartKind.Name](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/name.md)  -> ".\{name}" [PropertyPathPartKind.Index](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/index.md) -> "\[\{index}]" [PropertyPathPartKind.Key](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/key.md)   -> "\[\{key}]"

## Constructors

| Constructor                                                                                                                             | Description                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [PropertyPathPart(System.Int32)](/engine/6000.0/script-reference/unity/properties/propertypathpart/ctor.md#propertypathpart\(int\))     | Initializes a new [PropertyPathPart](/engine/6000.0/script-reference/unity/properties/propertypathpart.md) with the specified index. |
| [PropertyPathPart(System.Object)](/engine/6000.0/script-reference/unity/properties/propertypathpart/ctor.md#propertypathpart\(object\)) | Initializes a new [PropertyPathPart](/engine/6000.0/script-reference/unity/properties/propertypathpart.md) with the specified key.   |
| [PropertyPathPart(System.String)](/engine/6000.0/script-reference/unity/properties/propertypathpart/ctor.md#propertypathpart\(string\)) | Initializes a new [PropertyPathPart](/engine/6000.0/script-reference/unity/properties/propertypathpart.md) with the specified name.  |

## Properties

| Property                                                                                | Description                                                                                                                                                               |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Index](/engine/6000.0/script-reference/unity/properties/propertypathpart/index.md)     | The Index of the part. This will only be set when using [PropertyPathPartKind.Index](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/index.md)      |
| [IsIndex](/engine/6000.0/script-reference/unity/properties/propertypathpart/isindex.md) | Returns true if the part is [PropertyPathPartKind.Index](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/index.md).                                 |
| [IsKey](/engine/6000.0/script-reference/unity/properties/propertypathpart/iskey.md)     | Returns true if the part is [PropertyPathPartKind.Key](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/key.md).                                     |
| [IsName](/engine/6000.0/script-reference/unity/properties/propertypathpart/isname.md)   | Returns true if the part is [PropertyPathPartKind.Name](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/name.md).                                   |
| [Key](/engine/6000.0/script-reference/unity/properties/propertypathpart/key.md)         | The Key of the part. This will only be set when using [PropertyPathPartKind.Key](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/key.md)            |
| [Kind](/engine/6000.0/script-reference/unity/properties/propertypathpart/kind.md)       | The [PropertyPathPartKind](/engine/6000.0/script-reference/unity/properties/propertypathpartkind.md) for this path. This determines how algorithms will resolve the path. |
| [Name](/engine/6000.0/script-reference/unity/properties/propertypathpart/name.md)       | The Name of the part. This will only be set when using [PropertyPathPartKind.Name](/engine/6000.0/script-reference/unity/properties/propertypathpartkind/name.md)         |

## Methods

| Method                                                                                | Description                                                       |
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Equals](/engine/6000.0/script-reference/unity/properties/propertypathpart/equals.md) | Indicates whether this instance and a specified object are equal. |
