Fix mesh.color not working on polysec.

This commit is contained in:
2023-04-20 19:40:12 +08:00
parent e5956f2b34
commit 69fe03475b
3 changed files with 4 additions and 4 deletions

View File

@@ -24,11 +24,10 @@ namespace Cryville.Crtr.Components {
}
public override void Init() {
base.Init();
lineRenderer = gameObject.AddComponent<LineRenderer>();
lineRenderer.materials = materials = new Material[] { MeshWrapper.NewMaterial() };
Width = Width;
UpdateColor();
base.Init();
}
protected override void UpdateColor() {