Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
172 views
in Technique[技术] by (71.8m points)

AR Foundation 3D Human Body tracking trying more skeletons

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...