unity3d-jp / MeshSync

A package for synchronizing meshes/models editing in DCC tools into Unity in real time.
Other
1.55k stars 174 forks source link

Unskinned Maya mesh is skinnedMeshRenderer in Unity #76

Closed crogersarvr closed 4 years ago

crogersarvr commented 4 years ago

When I sync regular maya meshes with my unity scene, it creates skinnedMeshRenderers instead of meshRenderers, which breaks my unity scripts.

i-saint commented 4 years ago

I know it is undesirable behavior in some cases, but it is intended. skinned or non-skinned (and have blendshapes or not) can be easily switched in DCC side. but switching MeshRenderer and SkinnedMeshRenderer is complicated in Unity and can cause unexpected result. so we are always using SkinnedMeshRenderer. probably we need to add "use MeshRenderer for non-skinned meshes" mode.

crogersarvr commented 4 years ago

Thank you for the reply! I will be adding that and will make a pull request in the next week.

Have a good day

Chris

From: Seiya Ishibashi notifications@github.com Sent: Monday, June 10, 2019 5:00 PM To: unity3d-jp/MeshSync MeshSync@noreply.github.com Cc: christopher rogers rogersc@fb.com; Author author@noreply.github.com Subject: Re: [unity3d-jp/MeshSync] Unskinned Maya mesh is skinnedMeshRenderer in Unity (#76)

I know it is undesirable behavior in some cases, but it is intended. skinned or non-skinned (and have blendshapes or not) can be easily switched in DCC side. but switching MeshRenderer and SkinnedMeshRenderer is complicated in Unity and can cause unexpected result. so we are always using SkinnedMeshRenderer. probably we need to add "use MeshRenderer for non-skinned meshes" mode.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/unity3d-jp/MeshSync/issues/76?email_source=notifications&email_token=AMKJ5ADBR4PZ6QTBPQBLQR3PZ3TGVA5CNFSM4HWZIIG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLRQFQ#issuecomment-500635670, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMKJ5ADLJJHFFKU6VKT2QV3PZ3TGVANCNFSM4HWZIIGQ.

i-saint commented 4 years ago

https://github.com/unity3d-jp/MeshSync/commit/fe5c2a0be3a4cc48579f8d88e99bd7f41bb62ae9

i-saint commented 4 years ago

https://github.com/unity3d-jp/MeshSync/releases/tag/20190902