All Projects → jeffjadulco → unity-guid-regenerator

jeffjadulco / unity-guid-regenerator

Licence: MIT license
🆔 GUID regenerator for Unity assets

Programming Languages

C#
18002 projects

Labels

Projects that are alternatives of or similar to unity-guid-regenerator

WinDev-Utility
A utility for windows developers
Stars: ✭ 17 (-64.58%)
Mutual labels:  guid
UUIDNext
A fast and modern .NET library to generate UUID/GUID that are either sequential and database friendly (versions 7), name based (versions 5) or random (version 4).
Stars: ✭ 84 (+75%)
Mutual labels:  guid
Uuid
A PHP library for generating universally unique identifiers (UUIDs).
Stars: ✭ 11,475 (+23806.25%)
Mutual labels:  guid
simpleflakes
Fast and test-driven distributed 64-bit ID generation, using pure JavaScript, for Node.js.
Stars: ✭ 32 (-33.33%)
Mutual labels:  guid
ulid-creator
A Java library for generating Universally Unique Lexicographically Sortable Identifiers (ULID)
Stars: ✭ 38 (-20.83%)
Mutual labels:  guid

🆔 Unity GUID Regenerator

License: MIT

A Unity editor tool to regenerate GUID for your assets

⚠️ 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.

GUID

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

  1. Unity Editor > Windows > Package Manager
  2. Add package from git URL...
  3. Enter https://github.com/jeffjadulco/unity-guid-regenerator.git

Usage

inst

  1. Select one or multiple assets (folders are not supported)
  2. Right click > Generate GUID
  3. A modal will show to warn and confirm the action. Click Proceed.
  4. Wait for the operation to complete. Note that this will take a long time on larger projects.
  5. 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].