Example 2: List of strings (UnityScript)

varyourList:List.<String>=newList.<String>();functionOnGUI(){ReorderableListGUI.ListField(yourList,CustomListItem,DrawEmpty);}functionCustomListItem(position:Rect,itemValue:String):String{// Text fields do not like null values!if(itemValue==null)itemValue='';returnEditorGUI.TextField(position,itemValue);}functionDrawEmpty(){GUILayout.Label('No items in list.',EditorStyles.miniLabel);}

Refer to API reference for further examples!

Submission to the Unity Asset Store

If you wish to include this asset as part of a package for the asset store, please
include the latest package version as-is to avoid conflict issues in user projects.
It is important that license and documentation files are included and remain intact.

To include a modified version within your package:

Ensure that license and documentation files are included and remain intact. It should
be clear that these relate to the reorderable list field library.

Copyright and license information must remain intact in source files.

Change the namespace Rotorz.ReorderableList to something unique and DO NOT use the
name "Rotorz". For example, YourName.ReorderableList or YourName.Internal.ReorderableList.

Place files somewhere within your own asset folder to avoid causing conflicts with
other assets which make use of this project.

Useful links

Contribution Agreement

This project is licensed under the MIT license (see LICENSE). To be in the best
position to enforce these licenses the copyright status of this project needs to
be as simple as possible. To achieve this the following terms and conditions
must be met:

All contributed content (including but not limited to source code, text,
image, videos, bug reports, suggestions, ideas, etc.) must be the
contributors own work.

The contributor disclaims all copyright and accepts that their contributed
content will be released to the public domain.

The act of submitting a contribution indicates that the contributor agrees
with this agreement. This includes (but is not limited to) pull requests, issues,
tickets, e-mails, newsgroups, blogs, forums, etc.