New to Unity and Coding want advise on simple project

So I have dabbled in a little Java script but not a lot else and really want to start trying to learn coding and Unity. I have a project in mind that in theory is simple enough but gives me something to work towards.

The project I want to do is a random word generator. I want to be able to type a word and add it to an internal string database then at a click of a button I can randomly call a word from that database I have been adding words to.

Does that make sense? I think it sounds simple not to many components.

Anyway what I would like from this community is what sort of coding should I look into for this project and any advise for doing this.

Thank you.

maybe download someone’s working example?

The quick answer to your question is yes!. Unity has quite a bit of capability under the hood and can do just about anything you can dream of.

That being said, Unity displays everything in a 3D environment and it seems that unless you need the abilities that Unity can bring to the table, it’s a bit overkill to simply display text. Their might be other ways to do what you want and avoid having to learn some of the basics of Unity, even though you don’t take advantage of what Unity is best at. There are games that are done entirely in Unity’s UI screenspace, so you wouldn’t be encountering unknown territory.

Lastly, Unity’s native language is C#. It does support JS and there are many examples available that are in JS or both JS and C#. It would be to your advantage to learn C# if your going to use Unity and it is very doable to learn Unity and C# simultaneously. If you have JS experience, you also have coding and logic experience which is transferable to any programming language. You’ll find JS and C# are very similar in many ways and making the transition isn’t that difficult.

1 Like

Coding this will be pretty simple. Look into Arrays and Random. The learn section is pretty good on this.

Displaying it will require a few UI tools. The learn section has you covered here.

Saving the data between sessions is a little more challanging. But the learn section has a great tutorial on saving and persistent data.

Did I mention the learn section?