Version: 2022.3
LanguageEnglish
  • C#

PropertyPathPart

struct in Unity.Properties

/

Implemented in:UnityEngine.PropertiesModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A PropertyPathPart represents a single element of the path.

PropertyPathPartKind.Name -&gt; ".{name}" PropertyPathPartKind.Index -&gt; "[{index}]" PropertyPathPartKind.Key -&gt; "[{key}]"

Properties

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

Constructors

PropertyPathPart Initializes a new PropertyPathPart with the specified name.

Public Methods

Equals Indicates whether this instance and a specified object are equal.