I have tried every way I can think of, but I cannot replace a mesh in runtime.
I use the following code, code too long so I can only use pastebin:
https://pastebin.com/9iUb2wQ4
First I tried the code in the commented part to use RenderMeshUtility.AddComponents, then I tried to use UntypedWeakReferenceId but it seems I need to link UntypedWeakReferenceId to an existing object.
Can anyone help me out?
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.