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

Changing values in Play mode sometimes breaks Hair instance #93

Open
qlee01 opened this issue Jun 5, 2024 · 0 comments
Open

Changing values in Play mode sometimes breaks Hair instance #93

qlee01 opened this issue Jun 5, 2024 · 0 comments

Comments

@qlee01
Copy link

qlee01 commented Jun 5, 2024

This is a long standing issue, but I forgot to report it so far:
When changing parameter in play mode (including hair asset), at some point the Hair Instance stops working, and the following error is being spammed in console (happens in all versions, the log is from 0.13.0exp1):

NullReferenceException: Object reference not set to an instance of an object
Unity.DemoTeam.Hair.HairInstance+GroupAssetReference.GetSortKey () (at Library/PackageCache/com.unity.demoteam.hair@7fe8b81797/Runtime/HairInstance.cs:41)
Unity.DemoTeam.Hair.HairInstance.UpdateStrandGroupSettings () (at Library/PackageCache/com.unity.demoteam.hair@7fe8b81797/Runtime/HairInstance.cs:396)
Unity.DemoTeam.Hair.HairInstance.Update () (at Library/PackageCache/com.unity.demoteam.hair@7fe8b81797/Runtime/HairInstance.cs:221)

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

No branches or pull requests

1 participant