system
1
Is it possible to control the Halo component similar to the other components?
Something like:
renderer.enabled = false;
collider.enabled = false;
GetComponent("Halo").enabled = false; did not work for me aswell ( ‘enabled’ is not a member of ‘UnityEngine.Component’. )
Component halo = GetComponent(“Halo”);
halo.GetType().GetProperty(“enabled”).SetValue(halo, false, null);
save
2
The Halo component isn't connected to the renderer class. You'd have to do this:
GetComponent(Halo).enabled = false;
If it doesn't work, where are you calling it from and how? Just tested on the GameObject and it works well.