Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Unity 4.6 UI Script : Instanciate Gameobject under scrollview and position them?

$
0
0
Hello!

I'm trying to position instanciated gameobject (through scripts) under the content of a scrollview... The problem I have is they don't show at all at the right place, so I'm confused to what to do ..


Code (CSharp):
  1. GameObject go = Instantiate(m_scrollableObjectTemplate.gameObject) as GameObject;
  2. go.transform.parent = gameObject.transform; //Set the "Content" GO as the parent of this new object
So I thought if I did set the local position of the object (with gaps in between) that...

Unity 4.6 UI Script : Instanciate Gameobject under scrollview and position them?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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