SubPath
Returns a new PropertyPath containing the PropertyPathPart starting at the given start index.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
SubPath(PropertyPath, int)
Returns a new PropertyPath containing the PropertyPathPart starting at the given start index.
public static PropertyPath SubPath(in PropertyPath path, int startIndex)
Parameters
Returns
Type | Description |
|---|---|
| PropertyPath | A new PropertyPath |
SubPath(PropertyPath, int, int)
Returns a new PropertyPath containing the given number of PropertyPathPart starting at the given start index.
public static PropertyPath SubPath(in PropertyPath path, int startIndex, int length)
Parameters
The PropertyPath
The zero-based index where the sub path should start.
The number of parts to include.
Returns
Type | Description |
|---|---|
| PropertyPath | A new PropertyPath |