API GetSiblingIndex();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GetChild_ID : MonoBehaviour
{
public int IDD;
public Transform parent;
// Start is called before the first frame update
void Start()
{
parent = this.transform.parent;
IDD = this.transform.GetSiblingIndex();
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)