21-10-2017, 08:19 PM
(This post was last modified: 22-10-2017, 07:49 AM by mimarilker.)
Hi,
I am trying to change ObiSolver Component's/ Parameters/ Mode to "2Dmode" or "3Dmode" with different buttons during gameplay. Actually with a script I was able to change it, however it just changes Parameters/ Mode dropdown menu in apparent, it doesn't effect the solver in real. On the other hand, when I try to change it from the Mode - dropdown directly during the gameplay (without script, just mouse click), it works surprisingly. Is there any other method?
This is the code line that I used:
public ObiSolver solver;
solver.GetComponentInParent < ObiSolver> ().parameters.mode = Oni.SolverParameters.Mode.Mode3D;
Thanks for your support (I have sent this via email before, however it may be helpful for others, so I have decided share my problem here, too).
I am trying to change ObiSolver Component's/ Parameters/ Mode to "2Dmode" or "3Dmode" with different buttons during gameplay. Actually with a script I was able to change it, however it just changes Parameters/ Mode dropdown menu in apparent, it doesn't effect the solver in real. On the other hand, when I try to change it from the Mode - dropdown directly during the gameplay (without script, just mouse click), it works surprisingly. Is there any other method?
This is the code line that I used:
public ObiSolver solver;
solver.GetComponentInParent < ObiSolver> ().parameters.mode = Oni.SolverParameters.Mode.Mode3D;
Thanks for your support (I have sent this via email before, however it may be helpful for others, so I have decided share my problem here, too).