Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to create a List in UIElements?

$
0
0
Is it possible to create a List<T> with UIElements, when the List<T> is in the same class as MyEditor? I want to create/map/bind it in .uxml file, but dont know how (or is it even possible).

in example (blabla code):
Code (CSharp):
  1. public class MyEditor : EditorWindow
  2. {
  3.       public List<string> someStringList = new List<string>();
  4.  
  5.       // Rest of EditorWindow code...
  6. }

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>