Importing Assets
Last updated
Last updated
Before we talk about assets and their import into the project, let's first talk about the structure of the Force project. When you create a new project, Force creates root folder of your project named with your name of project, and several folders and files to work with, including the Assets folder where all your asset files will be stored.
First of all lets start with folders. As you can see your project have several folders:
Assets
Backup
Binary
Assets folder is folder where all of you assets will stored. And for Assets Browser this will be root directory. In Browser you cannot go outside the Asset directory.
Backup folder is folder where will be stored all removing assets, that can be restored, for example if you in Assets Browser context menu select Delete option that delete assets from Assets folder and moves it to Backup.
Binary folder is folder where stored binaries and compiled project and sub-project files. For example its can be scripting file Force.CSharp.Project.dll, that stores in Binary\Debug_or_Release-windows-x86_64 folder. Also this folder stores Reference files using for scripting. Binary folder contains file premake5.exe that used for building scripting project.
Scripts folder is not folder for user scripts but is folder for project building / refreshing scripts. All this scripts platform specific and divided by folders. For now Force is Windows only so only Windows folder be there. In that folder stored batch files Bulld.bat and Generate_VS2019.bat (its generate script project for Visual Studio 2019, for Visual Studio 2022, Premake5 is not made support yet) and they will automatically generates by Force when build or create script project. Generally, you dont need use them at all, only if Force is closed.
Second of all project folder contains several files named with project name. Two of them (.csproj, .sln) is files for scripting project that you can open and write scripts and build it. And main file is .forceproj that contains information about current project.
You can drag all the folders and files that you use into the Assets folder or directly into the browser, and which Force will turn into assets. I also want to say that Force will not modify the original asset files, even if there is a change in their configuration, in which case Force will simply re-import this asset and apply these changes to objects using it.
Warning: In most cases, their asset files are physical files on the disk, and if you delete it, then delete it from the hard disk.
All files that you drag into the Browser Force automatically detects them and imports them.