Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SubPath

Returns a new PropertyPath containing the PropertyPathPart starting at the given start index.
Read time 1 minuteLast updated 6 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


startIndex

The zero-based index where the sub path should start.

Returns

Type

Description

PropertyPathA 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


startIndex

The zero-based index where the sub path should start.

length

The number of parts to include.

Returns

Type

Description

PropertyPathA new PropertyPath