Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ObiSolver goes missing on an ObiActor prefab
#2
(11-04-2019, 12:45 PM)hecali_aj Wrote: 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?

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;
actor.AddToSolver(null);
Reply


Messages In This Thread
RE: ObiSolver goes missing on an ObiActor prefab - by josemendez - 18-05-2019, 05:32 PM