【发布时间】:2017-05-18 11:43:55
【问题描述】:
请问,有什么问题吗?在编辑器中很好,但在 Galaxy S6 上我只有黑屏。
RenderTexture texture;
void Start () {
texture = new RenderTexture (800, 480, 24);
RenderTexture.active = texture;
}
void Update () {
}
void OnPreRender(){
Camera.main.targetTexture = texture;
}
void OnPostRender() {
Camera.main.targetTexture = null;
Graphics.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), texture);
}
【问题讨论】:
标签: android unity3d unityscript