![]() |
ObiSolver goes missing on an ObiActor prefab - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html) +--- Thread: ObiSolver goes missing on an ObiActor prefab (/thread-1074.html) |
ObiSolver goes missing on an ObiActor prefab - hecali_aj - 11-04-2019 Hello, I have several objects which share the same ObiSolver. They are all prefabs. I drag them onto the scene and set their ObiSolver to the one I have on the scene. On runtime, their ObiSolver becomes None. Is there a way to set them on runtime? RE: ObiSolver goes missing on an ObiActor prefab - josemendez - 18-05-2019 (11-04-2019, 12:45 PM)hecali_aj Wrote: Hello, Hi, Prefabs in Unity cannot hold references to anything in a scene. This is because the prefab exists independently of the scene. This is just how prefabs work, not Obi's fault. Simply set the solver at runtime: Code: actor.Solver = yourSolver; |