うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-06-10から1日間の記事一覧

【Unity】Hierarchy 上の Transform の順番を操作する

Transform.GetSiblingIndex 現在の順番を取得できる using UnityEngine; public class TransformGetSiblingIndex : MonoBehaviour { private void Awake() { Debug.Log(transform.GetSiblingIndex()); } } Transform.SetSiblingIndex 指定した順番に変更する…