Selling Game

Hi, let’s say I create a game with free asset items, I`m allowed to sell the game, knowing that I used those items?

Check the EULA and Asset Licenses. You'll have to read something. Not a suitable question for UA. Such discussions should go on the forum.

The problem is scope. The variable textName has class scope, so the statement textName = GUILayout.TextField(tn); attempts to assign a single string to an object of type List<string>. That won't ever work, unless you use something like PHP or JavaScript with their magic variables. I'm not sure exactly what you're trying to do with GuiLayout.TextField, but as written, it's incorrect. Perhaps your usage of textName in the line above is supposed to be a field you've declared for display?

1 Answer

1

Glad I could help :) To help debug something like this in the future, pay attention to the return types. Your error explains everything You were trying to assign a String to a List, rather than an element in the list.