Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to change the Obi parameter in another script during the run time
#1
I tried to access the "Speed" parameter of the ObiEmitter script in another self-defined script but could not find it. I am wondering if there is any way to change this parameter in another script during the run time?
Reply
#2
(14-04-2019, 12:54 AM)zjyzjy1121 Wrote: I tried to access the "Speed" parameter of the ObiEmitter script in another self-defined script but could not find it. I am wondering if there is any way to change this parameter in another script during the run time?

Hi there,

You can set/get the speed parameter like this. It is just a regular public variable:

Code:
emitter.speed = 1;
Reply