Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access ObiEmitter class in C#
#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


Messages In This Thread
Access ObiEmitter class in C# - by fluidman84 - 20-06-2020, 04:19 AM
RE: Access ObiEmitter class in C# - by josemendez - 22-06-2020, 08:25 AM
RE: Access ObiEmitter class in C# - by fluidman84 - 23-06-2020, 05:26 PM