📜  在运行时统一更改材料 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:05.292000             🧑  作者: Mango

代码示例2
[SerializeField] Material material;

    void WhenYouWantTheMaterialToChange
    {
        GetComponent().material = material;
    }