09-09-2026, 02:23 PM
Hi,
We're using Obi Cloth alongside Lattice Modifier Asset on skinned cloth. Because ObiSkinnedClothRenderer.ValidateRenderer() sets skinnedMeshRenderer.sharedMesh = null at runtime and rendering goes through Graphics.RenderMesh on a batched mesh, any SkinnedMeshRenderer-based modifier silently no-ops — which is a perfectly reasonable design, it just isn't reachable from outside.
We solved it by dispatching the deformer's compute kernel over our renderer's slice of the batch mesh after your render system writes it. That works well, but it needs three protected fields on ObiClothRenderSystem (sortedRenderers, batchList, vertexOffsets), which we currently reach by reflection. Two small additions would remove that entirely:
1. A public renderer → batch-geometry accessor. DynamicRenderBatch and its mesh field are already public; this just exposes the mapping:
// ObiClothRenderSystem
public bool TryGetRenderGeometry(ObiClothRendererBase renderer,
out Mesh batchMesh, out int vertexOffset, out int vertexCount)
2. Set GraphicsBuffer.Target.Raw unconditionally in DynamicRenderBatch.Initialize, not only when gpu: true. On the Burst backend we currently set mesh.vertexBufferTarget after the buffers already exist. It does work — your Compute backend relies on the same ordering — but it's undocumented, so we'd rather not depend on it.
^Claude Feedback after finding a solution of integrating
We're using Obi Cloth alongside Lattice Modifier Asset on skinned cloth. Because ObiSkinnedClothRenderer.ValidateRenderer() sets skinnedMeshRenderer.sharedMesh = null at runtime and rendering goes through Graphics.RenderMesh on a batched mesh, any SkinnedMeshRenderer-based modifier silently no-ops — which is a perfectly reasonable design, it just isn't reachable from outside.
We solved it by dispatching the deformer's compute kernel over our renderer's slice of the batch mesh after your render system writes it. That works well, but it needs three protected fields on ObiClothRenderSystem (sortedRenderers, batchList, vertexOffsets), which we currently reach by reflection. Two small additions would remove that entirely:
1. A public renderer → batch-geometry accessor. DynamicRenderBatch and its mesh field are already public; this just exposes the mapping:
// ObiClothRenderSystem
public bool TryGetRenderGeometry(ObiClothRendererBase renderer,
out Mesh batchMesh, out int vertexOffset, out int vertexCount)
2. Set GraphicsBuffer.Target.Raw unconditionally in DynamicRenderBatch.Initialize, not only when gpu: true. On the Burst backend we currently set mesh.vertexBufferTarget after the buffers already exist. It does work — your Compute backend relies on the same ordering — but it's undocumented, so we'd rather not depend on it.
^Claude Feedback after finding a solution of integrating

