How to assign a texture to a material through code in unity

后端 未结 0 1463
滥情空心
滥情空心 2020-12-02 13:16

Here is my code:

     root_level1.GetComponent().material.EnableKeyword ("_NORMALMAP");
     Texture tex = Resources.Load("book         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题