maxartz15 / VertexAnimation

Vertex animation baking tool, shaders and animation system for Unity DOTS/ECS.
MIT License
423 stars 85 forks source link

Shader Error #11

Closed JingchengYang4 closed 2 years ago

JingchengYang4 commented 2 years ago

Fresh new installation on Unity 2021.2 and 2021.3, shader has issues which prevents animations from working.

截屏2022-04-16 下午10 09 07

After doing some digging, it appears this has do to with the per hybrid instance option. https://forum.unity.com/threads/shader-graph-shader-produces-strange-error-in-unity-2021-1-16f1.1149599/ Disabling it does make animations work for mono, and the characters do show for example 2 (ecs), however no animations.

JingchengYang4 commented 2 years ago

It's not exactly an error, for anyone who came across this issue after Unity 2021.1.15, please enable Hybrid Renderer V2 by adding ENABLE_HYBRID_RENDERER_V2 in scripting define symbols. I will make a commit with changes to the readme.

maxartz15 commented 2 years ago

Cool! I will have a look at the changes soon, maybe the package in general should be upgraded to a newer version.