Skip to content

ensure material name unique in Unity - #3575

Open
Liuweixian wants to merge 1 commit into
google-deepmind:mainfrom
Liuweixian:fix-mat-random-id-collision
Open

Liuweixian wants to merge 1 commit into
google-deepmind:mainfrom
Liuweixian:fix-mat-random-id-collision

Conversation

@Liuweixian

Copy link
Copy Markdown

My Case:
in my xml, there are 2468 geoms in total. Among them, 1905 have no name, no material, and only inline rgba values — all of these 1905 geoms will enter the random naming branch.

When drawing a random number from the range 0 to 999,999 each time, the probability of seeing at least one duplicate after 1905 trials (birthday paradox) is approximately 84%.

@Liuweixian Liuweixian changed the title ensure material name unique ensure material name unique in Unity Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant