22-06-2020, 08:25 AM
(20-06-2020, 04:19 AM)fluidman84 Wrote: I'm sure that there is a easy answer to this, but I've looked all over for the correct namespace to gain access to the speed property on a ObiEmitter component. In the docs I only see Obi.ObiActor referenced, but my IDE only identifies Obi.ObiCharacter.
What am I missing to get access to ObiEmitter?
All obi components exist in the Obi namespace. So does ObiEmitter, I'm not sure why your IDE does not identify it.
This works for me:
Code:
using Obi;
[...]
var emitter = object.GetComponent<ObiEmitter>();
emitter.speed = 1;
[...]