zoukankan      html  css  js  c++  java
  • u3d中 rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()错误的原因及解决方法

    原文:http://blog.csdn.net/wolf96/article/details/38363161

    官方是这么解释的

    http://issuetracker.unity3d.com/issues/camera-with-depth-only-or-dont-clear-throws-error-when-image-effects-are-applied?page=2#comments

    Camera with image effects throws error when certain game view aspect ratios are used

    To reproduce:
    1. Create a camera with Clear Flags set to "Depth Only" or "Don't Clear"
    2. Attach an image effect to the camera
    3. Set the game window scale to 16:9
    4. Enter game mode. Try resizing the game window
    5. "rect[2] == rt->GetGLWidth() && rect[3] == rt->GetGLHeight()" appears in the console

    Does not occur with version 4.2.2f1
    Seems to be related mostly to the aspect ration of the game view and the image effects.

    does not occur if game view is undocked



    大概是说

    1。创建一个相机设置为"Depth Only"或"Don't Clear"
    2。附加摄像机的图像效果
    3。游戏窗口范围设置为16:9
    4。进入游戏模式。调整游戏窗口

    。。。


    解决方法:

    在game面板中分辨率调成free,也许会好。。-  -

    或许 目前临时的解决方法是,将Editor的布局Layout改回默认设置,错误信息将不再出现。


    这个错误只在unity中发生,不会在打包出的游戏中发生

  • 相关阅读:
    C# 中的委托和事件
    sql笔记-group by 统计功能
    js,css小知识点记录
    sql小技巧
    《孙子兵法》总结
    .Net深复制、浅复制
    《君主论》
    php邮箱找回密码功能
    后台管理员账号不能同时登陆,以及登陆使对方强制下线功能
    好程序员应该读的30本书
  • 原文地址:https://www.cnblogs.com/dragon2012/p/3924849.html
Copyright © 2011-2022 走看看