OOForm 1.2
OOForm 1.2 document
1.About OOForm ............................................................................................................................... 3
1.1 Getting Started .................................................................................................................... 3
2.Using OOForm ................................................................................................................................ 5
2.0 About Demos ...................................................................................................................... 5
2.0.1 DemoGameConfig .................................................................................................... 5
2.0.2 DemoStringTable ...................................................................................................... 5
2.0.3 DemoAnimals ........................................................................................................... 5
2.1 Creating a table. .................................................................................................................. 5
2.1.1 Created by create menu ........................................................................................... 5
2.1.2 Created by creator .................................................................................................... 6
2.2 Editing table. ....................................................................................................................... 6
2.2.1 Opening table ........................................................................................................... 7
2.2.2 Using OOFormEditor ................................................................................................ 7
2.2.3 Data type OOForm supports .................................................................................... 7
2.3 About the Enum .................................................................................................................. 8
2.4 Using OOForm Manager ...................................................................................................... 8
3.Class OOFormArray reference ........................................................................................................ 9
4.The end ......................................................................................................................................... 12
4.1 Config the OOFormEditor: ................................................................................................. 12
4.2 Config column width and hide columns: ........................................................................... 12
4.3 Work in with Excel ............................................................................................................. 13
4.4 Thanks. .............................................................................................................................. 14
1.About OOForm
OOForm is a lightweight, simple, wonderful, powerful and easy to use table (maybe you call it
sheet or form) editor tools for Unity3d.
OOForm can help you to create tables for your games easily. For example game
configuration table, role attribute table, localized string table etc.
OOForm provides an easy solution for creating and editing tables inside of Unity's interface
as well as solutions to read/write and modify tables easily with scripting.Although not as
powerful as database system, but for small and medium sized games is already enough.
OOForm uses paging to support large tables. So do not worry about your tables are too
large.
OOForm's table data format compatible with MS Excel ('\t' for columns and '\n' for rows). So
OOForm can be used in conjunction with MS Excel.
Simple but wonderful, this is OOForm. Hope you can love it.
1.1 Getting Started
Here I will show you a few simple steps to use OOForm.
Step 1.Creating a table: Select the “Resources” Folder in Project Window and click
“Create->OOForm->Simple Table”. A table file will be created (named “Table_0”).
Step 2.Opening table: Click to select the new table file in Project Window. Select menu
“Window->OOForm->OOFormEditor” to open the OOFormEditor. The editor will open the
selection table.
Step 3.Editing table: Following the figure tips. (see "2.2 Editing your table" to learn more.)
After inputting data, remember to “Save” it:
Step 4.Reading table data by script: New a C# script and add codes:
Now you can check the Console log.
Is that very easy? I think you will love it! Ha-ha…
About more of OOForm, read continue!
2.Using OOForm
2.0 About Demos
OOForm unity package include three demos, you can learn how to use OOForm from them.
2.0.1 DemoGameConfig
DemoGameConfig: Shows you how to read table data and save as file after modifying data.
You can select the menu "Window->OOForm->Form->GameConfig" to open the demo table.
2.0.2 DemoStringTable
DemoStringTable: Shows you how to build a multi language string table for localization. It’s easy
to build and easy to add any language.
You can select the menu "Window->OOForm->Form->StringTable" to open the demo table.
2.0.3 DemoAnimals
DemoAnimals: Shows you how to build a class objects Dictionary from a table.
You can select the menu "Window->OOForm->Form->Animals" to open the demo table.
2.1 Creating a table.
You have two ways to create a table for your game.
2.1.1 Created by create menu
Step 1. Select the folder you want to store your table in the Project Window.
Step 2. Click on "Create->OOForm->Simple Table" in the Project Window.
Now, you have your new table inside the folder you selected. It is named as "Table_[0...N]".
To edit the new table, see "2.2 Edit your table".