mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-15 22:50:56 +00:00
update bundle (make active things that used to be enabled in the player/probe/tool creator methods)
This commit is contained in:
parent
004a63152c
commit
027c772b26
Binary file not shown.
Binary file not shown.
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user