文档

Unity Engine

Unity Engine

SubPath

Returns a new PropertyPath containing the PropertyPathPart starting at the given start index.
阅读时间1 分钟最后更新于 1 个月前

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