Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyPathPart

A PropertyPathPart represents a single element of the path.
Read time 1 minuteLast updated 5 days ago

Definition

public readonly struct PropertyPathPart : IEquatable<PropertyPathPart>

Remarks

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

IndexThe Index of the part. This will only be set when using PropertyPathPartKind.Index
IsIndexReturns true if the part is PropertyPathPartKind.Index.
IsKeyReturns true if the part is PropertyPathPartKind.Key.
IsNameReturns true if the part is PropertyPathPartKind.Name.
KeyThe Key of the part. This will only be set when using PropertyPathPartKind.Key
KindThe PropertyPathPartKind for this path. This determines how algorithms will resolve the path.
NameThe Name of the part. This will only be set when using PropertyPathPartKind.Name

Methods

Method

Description

EqualsIndicates whether this instance and a specified object are equal.