Trying to use this method but it only seems to disable the first one in the collection. Game doesn't have any GI slots I'm just putting in my own for effects.
This method should go through all and disable?
public override void InitGIsObjects()
{
base.InitGIsObjects();
string GI = "Bulb";
for (int i = 1; i < 22; i++)
{
GI = GI + i;
try
{
AddGI(GI, 0);
}
catch (System.Exception)
{
Debug.LogError("failed adding GI");
}
}
}





Top










are all trademarks of VPFORUMS.