Crashes when exporting skinned mesh with animation when asset optimized

Offen
#800 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
csharp, unity
Bereich
game-dev

Rechercherichtung

Verwende import_asset_example.zip mit Unity 2022.3 und den aufgeführten Humanoid- und Optimize Game Objects-Einstellungen, um den Absturz während des Editor Export zu reproduzieren. Verfolge anschließend den UnityGLTF-Exportpfad für skinned meshes mit animation und überprüfe, dass der Export des Beispiels nach glTF und GLB den Unity Editor nicht mehr zum Absturz bringt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the bug 💬

When exporting an object with animations using UnityGLTF, if the associated mesh asset’s import settings are configured with Animation Type set to Humanoid and the Optimize Game Objects option is enabled, Unity crashes during the process.

Steps to reproduce 🔢
  1. Download the import_asset_sample.zip.
  2. Extract the files into the Unity project’s Assets folder (the .meta files are pre-configured to trigger the crash).
  3. Add the imported model to the scene.
  4. Create a new Animator Controller.
  5. Add a state to the controller and set its animation clip to one of the animations included in the FBX file.
  6. In the scene hierarchy, export the object to either glTF or GLB, it will crash the Unity Editor.
Files to reproduce the issue ♻

import_asset_example.zip

Editor Version 🎲

2022.3

Render Pipeline and version

Not related to the render pipeline

UnityGLTF Version

2.14.1

Operating System 👩‍💻

Windows

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

No response

Validations 🩹
Vorherrschende Sprache
C#
Sterne
2.3k
Forks
539
Ø Merge
3 T. 15 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus KhronosGroup/UnityGLTF

Alle Issues in KhronosGroup/UnityGLTF

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.