Delimit UID length #11577
ettiSurreal
started this conversation in
Engine Core
Delimit UID length
#11577
Replies: 1 comment 1 reply
-
If you intentionally break these files you're going to run into problems, but all that will happen is that it will regenerate, I don't think we need to handle cases where users manually break things, and we shouldn't assume it's just some specific change, if it's invalid it should just be discarded as invalid The maximum length isn't hardcoded, nor is it an arbitrary limit, it's simply that UIDs are encodings of 64 bit values which has an upper limit on the length |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One neat thing about UIDs is that you can manually rename them and they'll still work. So for example if you open the .import file of an image and change
uid="uid://ephy2awyrre5"
touid="uid://cat"
, then try accessing it withload("uid://cat")
, it will just work.However, one major problem with doing so is that the maximum length of the UID string is hard capped at 13 characters, making one longer than that will cause the UID to silently auto-regenerate.
Is this a limitation of how UIDs are implemented, or is it just an arbitrary limit that can be removed (or extended)?
Beta Was this translation helpful? Give feedback.
All reactions