Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access ObiEmitter class in C#
#1
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?
Reply
#2
(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;
[...]
Reply
#3
Yes. working fine now. The Obi namespace still not recognized by the IDE (visual studio) but I probably just have to whitelist it or something. No big deal, got it to do what I want with your help, thanks!
Reply