unity3d - How to create dynamic table in Unity -


i want create dynamic table. in pictures

enter image description here

enter image description here

i can add or delete rows this.

but, how add or delete column in unity. possible? please give me hand.

ok i'm going explain how create dynamic vertical list. there can use create table. here ui object setup use

  1. holder object(this has image , scrollrect component)
    1.1 vieportobject(this has image , mask component, use object define size of vieport)

    1.1.1 contentobject(you spawn elements children of object , holds vertical list script)

and here actual script use:

using unityengine; using system.collections; using unityengine.ui;      public class verticallist : verticallayoutgroup {         public override void calculatelayoutinputvertical()         {             base.calculatelayoutinputvertical();             recttransform.sizedelta = new vector2(recttransform.sizedelta.x, minheight);         }      } 

here screenshot of how hierarchy looks like.

enter image description here

edit: need prefab layout element component instantiate child of contentobject.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -