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
Post a Comment