-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unity 2019.4.12f1 native pointer issue with JobMetaLoader #3
Comments
Hello emilianavt , thanks your comment.
|
Thank you for your response! I have imported it now, but when running the following code:
I get the following exception:
The asmdef is installed and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Thank you for your work on this! I have tested the
MetaLoader
class and found a 3.6x speedup compared to usingVRMImporterContext
.I also wanted to try the jobs based loader, but it refused to run due to the unsafe native pointer restriction introduced in Unity. After decorating the
loader
pointers with[NativeDisableUnsafePtrRestrictionAttribute]
(documentation), there no longer was an error, but instead Unity crashed. Do you think it is possible to make theJobMetaLoader
work on the current Unity version?I added
[NativeDisableUnsafePtrRestrictionAttribute]
before these lines:VRMQuickMetaLoader/Assets/VRM.QuickMetaLoader/Scripts/JobMetaLoaderInternal.cs
Line 130 in 2db8c3e
VRMQuickMetaLoader/Assets/VRM.QuickMetaLoader/Scripts/JobMetaLoaderInternal.cs
Line 208 in 2db8c3e
The text was updated successfully, but these errors were encountered: