Changing color of Halo?

Is there a way to change the color of a Halo in Code? There doesn’t seem to be a Halo-Class, which is strange. I thought every component basically was a class deriving from MonoBehaviour.
:face_with_spiral_eyes:

Not everything is exposed to scripting.

–Eric

Only things that you script and Terrain extend MonoBehaviour, but all components extend Component.

There is one trick with halo’s i know of. and thats turning them on and off.

In short heres how you do it ( going to write this like it wouldnt matter if you were in js or c# )

turn on :
((Behaviour)GetComponent(“Halo”)).enabled = true;

turn off :
((Behaviour)GetComponent(“Halo”)).enabled = false;

and with that said, this certainly is not ideal and if the unity team ever decides to expose this properly it may not work if they choose to make it not a behaviour