Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if UNITY_EDITOR
- void OnValidate()
- {
- if (string.IsNullOrEmpty(id))
- id = Guid.NewGuid().ToString();
- }
- #endif
- // will make you some unique Id's tho, that you can clean up when you want by deleting it in inspector (will recreate automaticaly)
Advertisement
Add Comment
Please, Sign In to add comment