What is the purpose of the Assets directory?

Asked

Viewed 1,187 times

2

I’m starting to learn about Unity, and in my first project I came up with a question about the directory Assets. It contains some files that are C# game 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 directory Assets in projects made with Unity?

2 answers

1

Bits of Bytes response is correct. Just some complementary information to make it even clearer:

You can imagine the Assets folder as the content of your game that will be on the hard drive, available to be accessed during the game, while what is in your current scene is what is in RAM. Thus, your game may have a few gigs in its final size but your scenes will only lead to RAM memory the objects that are present in it.

The Assets folder you see with Unity open is the same as in the project, seen in the explorer. However, within Unity, files like . goal are concealed. These files serve the internal control of a particular Asset, such as where it is being used, its properties etc.

1

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.