How to turn a Halo component ON or OFF through scripting. I tried
<gameobject>.GetComponent("Halo").enabled= true
which doesn’t work.
How to turn a Halo component ON or OFF through scripting. I tried
<gameobject>.GetComponent("Halo").enabled= true
which doesn’t work.
It seems like there is not possible to get Halo component…
But if i try
<gameobject>.GetComponent("Halo")
only then no error is flagged. That means it is getting the component.
I’ve a similar problem, I’ve also tried something like this:
.AddComponent(“Halo”);
It adds the Halo component to the selected object, but I don’t know how to set color strength.
I’ve succeded!
write something like this:
(t.GetComponent(“Halo”)).enabled = true;
it works.
Here’s what I did that worked C# code:
Behaviour h = (Behaviour)GetComponent(“Halo”);
h.enabled = true;