PropertyPathPart
A PropertyPathPart represents a single element of the path.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
- Implements: IEquatable<PropertyPathPart>
public readonly struct PropertyPathPart : IEquatable<PropertyPathPart>
Remarks
PropertyPathPartKind.Name -> ".{name}" PropertyPathPartKind.Index -> "[{index}]" PropertyPathPartKind.Key -> "[{key}]"
Constructors
Constructor | Description |
|---|---|
| PropertyPathPart(System.Int32) | Initializes a new PropertyPathPart with the specified index. |
| PropertyPathPart(System.Object) | Initializes a new PropertyPathPart with the specified key. |
| PropertyPathPart(System.String) | Initializes a new PropertyPathPart with the specified name. |
Properties
Property | Description |
|---|---|
| Index | The Index of the part. This will only be set when using PropertyPathPartKind.Index |
| IsIndex | Returns true if the part is PropertyPathPartKind.Index. |
| IsKey | Returns true if the part is PropertyPathPartKind.Key. |
| IsName | Returns true if the part is PropertyPathPartKind.Name. |
| Key | The Key of the part. This will only be set when using PropertyPathPartKind.Key |
| Kind | The PropertyPathPartKind for this path. This determines how algorithms will resolve the path. |
| Name | The Name of the part. This will only be set when using PropertyPathPartKind.Name |
Methods
Method | Description |
|---|---|
| Equals | Indicates whether this instance and a specified object are equal. |