|
For entities that have a unique ID, you can specify your own custom ID.
Setting a custom code only provides a benefit if you plan to reference an entity in a script.
In scripts, you can then use that verbose custom ID which is more readable than using the generated numeric ID.
Custom IDs must not start with a number. The numeric internal ID is never discarded and continues to work.
If you disable the custom ID at a later point, the ID will be reverted to the numeric ID.
Custom IDs are inserted into scripts instead of the numeric IDs by the ID selection dialog.
All get...ById() methods in the API accept both the custom ID and the internal numeric ID.
This means that you can set a custom ID without breaking anything in the project. However,
if you use the custom IDs in scripts and change the custom ID or revert to the numeric ID, those scripts
will break.
|