Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's _UniqueID? #4

Closed
Luxiere opened this issue Aug 27, 2020 · 1 comment
Closed

What's _UniqueID? #4

Luxiere opened this issue Aug 27, 2020 · 1 comment
Assignees
Labels

Comments

@Luxiere
Copy link

Luxiere commented Aug 27, 2020

In the project you created a Material Property Block and SetFloat("_UniqueID", Random.Value) to it. Is the _UniqueID the instance unique ID? Why do you need to set this value?

@keijiro keijiro self-assigned this Aug 27, 2020
@keijiro
Copy link
Owner

keijiro commented Aug 27, 2020

// This property block is used only for avoiding an instancing bug.

As noted in the comment, it's a workaround for an instancing bug inside Unity. I can't remember what it was... I think it has been fixed in the current version.

@keijiro keijiro closed this as completed Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants