文档

Unity Engine

Unity Engine

SetSiblingIndex(Transform, int, string)

Sets the sibling index of transform and records an undo operation.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetSiblingIndex(Transform transform, int siblingIndex, string name)

Parameters

transform

Transform that will have its sibling index changed.

siblingIndex

New sibling index.

name

Undo operation name.