In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about what the paths of Unity3D platforms are. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Resources path
The Resources folder is a folder that is automatically recognized in Unity and can be created in the Project window of the Unity editor and put resources in it. All the resources under the Resources folder are packaged into .apk or .ipa, whether they are useful or not, and the resources inside are compressed when they are packaged. The loading method is Resources.Load (file name). Note that the file name does not include the extension, and the content of the resources under the Resources cannot be changed after packaging, but the resources loaded from the Resources folder can be changed.
2. Application.dataPath path
This property returns the path of the folder where the program's data files are located, such as the path of the project's Assets folder in Editor, through which you can access resources in any folder in the project, but it is completely useless on the mobile side.
3. Application.streamingAssetsPath path
This property is used to return the cache directory of the stream data, and the return path is a relative path, which is suitable for setting the path of some external data files. Start a folder called "StreamingAssets" under the Assets directory of the Unity project, and then access it with Application.streamingAssetsPath. The resources in this folder will be packed intact and will not be compressed, and some resource data will generally be placed. Operations such as "add, delete, modify and query" of files can be realized in PC/MAC, but it is a read-only path on the mobile side.
4. Application.persistentDataPath path (recommended)
This property returns the path to a persistent data storage directory under which some persistent data files can be stored. This path is readable and writable, but can only be read and written while the program is running, and data cannot be put into this path in advance. Sandboxie of the application on IOS, can be automatically backed up by iCloud, can be synchronized to push a kind of assistant to directly take out the file; the location on Android is based on the Write Access path set in Project Setting, you can set the program sandboxie or sdcard, note: if the Android settings are saved in sandboxie, then you must root before using the computer to take out the file, so it is recommended to write in sdcard. In general, it is recommended that the obtained files be saved in this path, for example, binary files that can be read from StreamingAsset or files read from AssetBundle are written to PersistentDatapath.
5. Application.temporaryCachePath path
This property returns a cache directory of temporary data, similar to Application.persistentDataPath, but cannot be backed up automatically on IOS.
6 、 / sdcard/.. Path
Represents the SD card root directory of the Android phone.
7 、 / storage/emulated/0/.. I have been looking for this path for a long time. )
Represents the built-in storage root directory of an Android phone.
Thank you for reading! This is the end of the article on "what is the path of each Unity3D platform". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.