I have a halo on a object… how can I call tell it via script to change to a color I want?
1 Answer
1The halo colour changes with the colour of your light, so change the colour of your light using Light.color ![]()
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.
– Eric5h5You 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(); }
– unity_5kcJqPVlb9nWrA
Duplicate question: http://answers.unity3d.com/questions/10534/changing-color-of-halo.html
– Eric5h5