Pull up mesh.color. Remove *.opacity properties.

This commit is contained in:
2023-02-19 22:06:20 +08:00
parent a115999aab
commit ba3238614b
6 changed files with 20 additions and 53 deletions

View File

@@ -90,6 +90,7 @@ namespace Cryville.Crtr.Components {
mesh.Init(transform);
mesh.Renderer.materials = materials = new Material[] { MeshWrapper.NewMaterial() };
mesh.Mesh = GenericResources.Meshes[meshName];
UpdateColor();
UpdateScale();
UpdateZIndex();
}