Hello.

When I Use RenderExistingMesh Component, I noticed that GC Alloc is occurring every frame.

When calling sharedMaterials, using GetSharedMaterials can avoid GC Alloc.

Material[] parentMaterials = referenceRenderer.sharedMaterials;
(Line136, RenderExistingMesh.cs)

I'm sorry if my point is wrong.
Thank you.


Using version.
Unity 2022.3.27
Spine 4.1

Related Discussions
...

@Harald

Thank you! I checked the code.
It was very helpful.

  • Harald 님이 이 게시물을 좋아합니다..