unity3d - Changing layout group childForceExpand with code -


i wondering how access childforceexpand of layout groups code. i'm attaching vertical layout groups instantiated panels , want turn force expand off.

like so:

  using unityengine.ui;    verticallayoutgroup grp = getcomponent<verticallayoutgroup>();   grp.childforceexpandheight = true;   grp.childforceexpandwidth = false; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -