Eonirr

Untitled

Mar 10th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #if UNITY_EDITOR
  2. void OnValidate()
  3. {
  4. if (string.IsNullOrEmpty(id))
  5. id = Guid.NewGuid().ToString();
  6. }
  7. #endif
  8.  
  9. // 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