jeffjadulco/unity-guid-regenerator
关于
:id: GUID regenerator for Unity assets
游戏与模拟器实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文:id: Unity GUID Regenerator
A Unity editor tool to regenerate GUID for your assets
:warning: Disclaimer: Only use this if needed. Intentionally modifying the GUID of an asset is not recommended unless certain files are problematic
What is GUID in Unity?
GUID is a unique hash that is automatically generated and assigned when creating a new asset. This GUID is used when a serialized asset references another asset.

It is stored in an asset's meta file. Manually you can open and view a meta file in a text editor to get the GUID. However, Unity has its AssetDatabase API that is useful for accessing and performing operations on assets.
Why regenerate a GUID?
When you work on multiple projects that are based on existing projects, chances are most of the assets have the same GUID. This can cause some issues later on when you add more assets from existing projects. Unity won't be able to distinguish the difference between assets with same GUID even they have different file name and contents. This can cause Unity to associate references to the wrong asset.
The simplest workaround for this is to duplicate the asset. The newly created asset will have its own GUID assigned by Unity. However, you will need to manually replace all its references in the Scene, prefabs, etc.
Installation
- Unity Editor > Windows > Package Manager
- Add package from git URL...
- Enter
https://github.com/jeffjadulco/unity-guid-regenerator.git
Usage

- Select one or multiple assets (folders are not supported)
- Right click > Generate GUID
- A modal will show to warn and confirm the action. Click Proceed.
- Wait for the operation to complete. Note that this will take a long time on larger projects.
- A report will be logged in the console detailling what assets are updated/skipped.
Notes
- Scenes are always skipped as this corrupts the scene.
Author
License
This project is open source and available under the MIT License.
探索相关项目
加载中…