KhronosGroup / UnityGLTF

Runtime glTF 2.0 Loader for Unity3D
MIT License
1.84k stars 490 forks source link

ParticleSystemBakeMeshOptions not existing in the current context #789

Closed CG-Tespy closed 1 month ago

CG-Tespy commented 1 month ago

Describe the bug 💬

I've been wanting to take a model and apply the Unity Humanoid Rig to it, so I decided to try UnityGLTF. Problem is that right after importing it, I got this error: Library\PackageCache\org.khronos.unitygltf@2.14.0\Runtime\Scripts\Plugins\Experimental\BakeParticleSystem.cs(39,40): error CS0103: The name 'ParticleSystemBakeMeshOptions' does not exist in the current context

This keeps me from being able to use UnityGLTF.

Steps to reproduce 🔢

  1. Import the package

Files to reproduce the issue ♻

No response

Editor Version 🎲

2022.3

Render Pipeline and version

URP 14.0.7

UnityGLTF Version

2.13.0

Operating System 👩‍💻

Windows

When does this problem happen?

Additional Info 📜

No response

Validations 🩹

hybridherbst commented 1 month ago

Hey, which 2022.3 version are you using exactly?

hybridherbst commented 1 month ago

@CG-Tespy seems Unity added that option starting with 2022.3.11f1.

So would be great if you could upgrade to a later 2022.3 than you're currently using (at least 2022.3.11f1), and try again.

We'll fix this in an upcoming release but since it's regarding an old Unity version it won't be an urgent fix.

CG-Tespy commented 1 month ago

I've tried it with 2022.3.47f1 and instead got this error:

Multiple scripted importers are targeting the extension 'glb' and have all been rejected: UnityGLTF.GLTFImporter (assembly: F:\UnityProjects_Sandboxes\AnimationSandbox_2022LTS\Library\ScriptAssemblies\UnityGLTFEditor.dll), UniGLTF.GlbScriptedImporter (assembly: F:\UnityProjects_Sandboxes\AnimationSandbox_2022LTS\Library\ScriptAssemblies\UniGLTF.Editor.dll) UnityEditor.AssetImporters.ScriptedImporter:RegisterScriptedImporters ()

The package does still show up in the Package Manager, though. image

hybridherbst commented 1 month ago

This is a separate issue, and unfortunately caused by Unity's ScriptedImporter architecture.

We made sure the two major glTF packages – UnityGLTF and glTFast – can coexist in one project, but the same isn't true for UniGLTF at the moment.

Please remove UniGLTF if you want to use UnityGLTF for the time being.

hybridherbst commented 1 month ago

UniGLTF claims compatibility already: https://github.com/vrm-c/UniVRM/issues/1576 I'll check why that doesn't work anymore from their end.

CG-Tespy commented 1 month ago

Thank you very much. I didn't realize I even had UniGLTF installed in that project, but after uninstalling it, I no longer got any errors from this asset package