-
Notifications
You must be signed in to change notification settings - Fork 0
Build Item
Once you've finished editing your item, you can try packaging it. Before you begin, ensure that all necessary information for the item in the Item Manager
window is set correctly.
Click the Build
button in the Item Manager
window. The packaged content will be stored in a folder with the same name as the item under the [Project Root Directory]/Export/Items
directory.
If any warnings or errors occur during packaging, check the Console
window for more information.
Error: 'Can't build custom scripts with warning: The C# source file 'XXX.cs' exists in the Unity project but not in the .csproj file and will not be compiled. You may need to regenerate the script project file/Script compilation will be skipped. No source files were specified! Possible Reason: The script editor failed to generate the correct csproject.'
Solution: Ensure that the Packages Manager
window contains a unique script editor and that it matches the settings in the Preferences
window under External Tools
(e.g., Visual Studio):
Notes:
- During packaging, scene or Prefab files in the Item folder will be temporarily modified. If the packaging process fails due to special reasons, these files may not be restored. Therefore, make backups before packaging.
- Due to AssetBundle limitations, scene names within the Item folder must be unique; otherwise, packaging will fail.