update bundle (make active things that used to be enabled in the player/probe/tool creator methods)

This commit is contained in:
JohnCorby 2022-02-17 17:37:56 -08:00
parent 004a63152c
commit 027c772b26
3 changed files with 10 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -8,6 +8,16 @@ namespace QSB.PlayerBodySetup.Remote
public static void ReplaceShaders(GameObject prefab)
{
DebugLog.DebugWrite($"TODO: replace shaders for prefab {prefab}");
foreach (var renderer in prefab.GetComponentsInChildren<Renderer>())
{
DebugLog.DebugWrite($"found renderer {renderer}");
foreach (var material in renderer.sharedMaterials)
{
DebugLog.DebugWrite($"found shared material {material}");
DebugLog.DebugWrite($"shader = {material.shader}");
}
}
}
}
}