Hi everyone I want to try human pose estimation with multi skeletons controlled by buttons. I tried the following code bu that is not working.
I added 3 Gameobject for 3 skeletons
public GameObject m_SkeletonPrefab;
public GameObject m_SkeletonPrefab1;
public GameObject m_SkeletonPrefab2;
and I tried to switching prefabs by using the following codes;
private void Start()
{
prefabs.Add(m_SkeletonPrefab);
prefabs.Add(m_SkeletonPrefab1);
prefabs.Add(m_SkeletonPrefab2);
btn.onClick.AddListener(() => SwitchPrefab());
}
void SwitchPrefab()
{
index=(index+1)%3;
}
My whole codes link is here:
https://paste.tc/HHgw4MkGBP
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…