Quantcast
Channel: Answers for "making one object a parent of another via javascript"
Browsing all 4 articles
Browse latest View live

Answer by spinaljack

One option is to put the object in a container and make the camera the child of the container (and a sibling of the object) and have the container control movement and rotation of the object, so long...

View Article



Answer by GameGuy

You can also drag the Camera onto the Gameobject in Sceneview, and it is parented. But this will not work with Prefabs without breaking the link, therefor do "Option One" from spinaljacks answer

View Article

Answer by spinaljack

One option is to put the object in a container and make the camera the child of the container (and a sibling of the object) and have the container control movement and rotation of the object, so long...

View Article

Answer by GameGuy

You can also drag the Camera onto the Gameobject in Sceneview, and it is parented. But this will not work with Prefabs without breaking the link, therefor do "Option One" from spinaljacks answer

View Article
Browsing all 4 articles
Browse latest View live


Latest Images

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