Change Halo Color with Code

I have a halo on a object… how can I call tell it via script to change to a color I want?

Duplicate question: http://answers.unity3d.com/questions/10534/changing-color-of-halo.html

1 Answer

1

The halo colour changes with the colour of your light, so change the colour of your light using Light.color :slight_smile:

No, the question is referring to the halo component which is attached to an object, where you change the color in the inspector; it's not related to lights.

You can . It is possible with the following code . private void Start() { SerializedObject halo = new SerializedObject(this.gameObject.GetComponent("Halo")); halo.FindProperties("m_Color").colorvalue=Color.red; halo.Apply(); }