What is the purpose of the Assets directory?

I'm starting to learn about Unity, and in my first project I got a question about the Assets Directory. It contains some files that are Game C# scripts, and other extension files *.asset and *.meta, there are other directories and other file types as well.

Therefore, I would like to know what is the purpose of the assets directory in projects made with Unity?

Author: gato, 2018-02-10

2 answers

It stores everything you want to put inside the game, like: I downloaded a 3D house for my game, so to make unity recognize that object, you have to put it inside that folder and everything you create inside unity, as well as scripts and others, is all inside that folder.

 1
Author: Bits of Bytes, 2018-02-11 06:03:42

Bits of Bytes answer is correct. Just some additional information to make it even clearer:

You can imagine the assets folder as the content of your game that will be in HD, available to be accessed during the game, while what is in your current scene is what is in RAM. Therefore, your game may have a few gigs in its final size but your scenes will only take to RAM the objects that are present in it.

The Assets folder that you see with Unity Open is the same as it is in the project, seen in explorer. However, within Unity, files like os .meta are hidden. These files are used for internal control of a particular asset, such as where it is being used, its properties, etc.

 1
Author: Igor Couto, 2018-02-22 20:57:34