Quantcast
Channel: Answers for "How to replace a gameobject referenced in JS using C#"
Browsing all 4 articles
Browse latest View live

Answer by robertbu

Transforms[0] = GameObject.Find("anything").transform; Your question is confusing. You can execute the line you specify using 'Player' as long as a game object with the name 'Player' exists at the time...

View Article



Answer by MajorParts

This is the syntax I was after... GameObject temp = GameObject.Find ("playerSHIP(Clone)/localSHIP"); GameObject.Find("RadarMgr").GetComponent().Transforms[0] = temp.transform;

View Article

Answer by robertbu

Transforms[0] = GameObject.Find("anything").transform; Your question is confusing. You can execute the line you specify using 'Player' as long as a game object with the name 'Player' exists at the time...

View Article

Answer by MajorParts

This is the syntax I was after... GameObject temp = GameObject.Find ("playerSHIP(Clone)/localSHIP"); GameObject.Find("RadarMgr").GetComponent().Transforms[0] = temp.transform;

View Article
Browsing all 4 articles
Browse latest View live




Latest Images