Quantcast
Channel: Answers for "How to replace a gameobject referenced in JS using C#"
Browsing latest articles
Browse All 4 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

Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>