【发布时间】:2017-09-11 17:28:00
【问题描述】:
首先,对不起我的英语。 我想将一些纹理从每个帧都有不同纹理的游戏对象中备份到一个列表中。我尝试这样做,并且每帧都将纹理推送到列表中,但是所有推送的纹理似乎都被覆盖到了最新的纹理……我也尝试了 Instantiate();当每个纹理被推入列表但纹理完全透明时。我没有使用电影纹理。有谁知道怎么做这个??
我可能解释得不够清楚,所以如果有什么不清楚的地方请问我。 谢谢
//Those line of codes are looping every frame
//This is the current code
transitionTextures.Add(targetGameObject.GetComponent<Renderer>().materials[0].mainTexture);
//This is the another code that I tried
transitionTextures.Add(Instantiate(targetGameObject.GetComponent<Renderer>().materials[0].mainTexture));
【问题讨论】: