Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Official Unity 2021.2 Is Now Available

Discussion in 'Announcements' started by LeonhardP, Oct 25, 2021.

Thread Status:
Not open for further replies.
  1. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    I just reported this, can't build to WebGL with URP.

    Shader error in 'Hidden/Universal/CoreBlit': invalid subscript 'positionCS' at Test/Library/PackageCache/com.unity.render-pipelines.core@12.1.0/Runtime/Utilities/Blit.hlsl(92) (on gles)

    Compiling Vertex program
    Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
    Disabled keywords: BLIT_SINGLE_SLICE DISABLE_TEXTURE2D_X_ARRAY SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING

    Don't know if reported before but this is a lot of issues for a Tech release. :(

    Thanks,
    crafTDev
     
    Saturn1004 and reinfeldx like this.
  2. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    489
    I had to upgrade to 2021.2 because you finally, after 3 years, decided to add async GPU readback to OpenGL. However, in 2021.2, something is terribly broken. I get the error

    constantly. Building fails because of it. Anyone else running into this?

    Filed a bug report with the editor log: Case 1380047

    Edit:
    The issue was with a custom package (UnityGLTF) that was placed in Packages/. The issue was fixed by removing that package, and adding it anew from git.
     
    Last edited: Nov 12, 2021
    LeonhardP likes this.
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    The fix is in 2021.2.2f1 which will likely come out today or tomorrow.

    The latest 2021.2 release is currently 2021.2.1f1, .2f1 is due this week. We're aiming to ship weekly updates for the Tech stream so .3f1 is slated for next week.

    Thanks for the report. Could you please share the issue ID here?
     
  4. arcade_jon

    arcade_jon

    Joined:
    Feb 9, 2018
    Posts:
    11
    So, just tried 2021.2.2f1 and great that the editor input delay bug is gone.

    However, I still can't use mp4 videos. @LeonhardP - any news on when a fix is coming for this? Or if there is a workaround?

    I have an H.264 video that my Unity iOS project uses. Unity crashes when I try and open the project, or if I try and import the video.

    Thanks
     
  5. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    Hello,

    Issue #1379875

    Thanks,
    crafTDev
     
    LeonhardP likes this.
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    The fix for that issue is in 2021.2.3f1: https://issuetracker.unity3d.com/is...the-h264encoderattributes-on-macos-m1-chipset
     
  7. warpedpipe

    warpedpipe

    Joined:
    Nov 28, 2017
    Posts:
    14
    In 2021.2.2 the transform gizmo tool isnt visible for lights or cameras. Im specifically using an HDRP project.
     
    Last edited: Nov 12, 2021
  8. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    10,065
  9. warpedpipe

    warpedpipe

    Joined:
    Nov 28, 2017
    Posts:
    14
  10. kalineh

    kalineh

    Joined:
    Dec 23, 2015
    Posts:
    240
    This is happening to us with RectTransform too.
     
  11. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,878
    2021.2 (with URP template at least) is quite unresponsive as listed in the known issues.
     
  12. sergiusz308

    sergiusz308

    Joined:
    Aug 23, 2016
    Posts:
    210
    Unity 2021.2.2f1

    RectTransform gizmo myhem continues:

    1. No Gizmo visible when object (Image in this case) is selected (yeah, you got this something in the left, lower side of the screen)

    rect_transform_fkup_1.png

    2. If I start changing Pos X in the Inspector - gizmo shows up

    rect_transform_fkup_2.png

    3. When I grab it and start moving around, after a while, it disappears again

    rect_transform_fkup_3.png

    Yeah... it's like basic stuff guys...
     
    crafTDev and sama-van like this.
  13. sergiusz308

    sergiusz308

    Joined:
    Aug 23, 2016
    Posts:
    210
    Unity 2021.2.2f1

    Added a script to game object. Set a breakpoint for debugging. Attached to Unity instance, VS Community 2017. Switched back to Unity and pressed "Play" mode.... Unity hangs up forever:

    upload_2021-11-14_0-22-13.png

    Killed Unity via Task Manager.

    Now, each time I click on the "Play" mode, Unity hangs up....

    This is a joke ppl! This is just beyond everything how this release is messed up!
     

    Attached Files:

  14. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    Soft shadows aren't working on Android and iOS. Is there a fix for that in the pipeline?

    EDIT: I found this issue. Any plans to get this fixed on 12.x/2021.2.x?
     
    Last edited: Nov 15, 2021
  15. VoodooDetective

    VoodooDetective

    Joined:
    Oct 11, 2019
    Posts:
    238
    There's a dramatic rendering regression in 2021.2 according to the profiler. Our game went from 1000FPS to less than 60FPS at times. This is the exact same game, exact same configuration.

    Before
    After
     
  16. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    I'm running into another issue with 2021.2.2f1 on macOS (Big Sur Intel & Monterey Apple Silicon):

    If I switch between the Scene and Game views while in play mode, the editor will hang and I have to force quit.
    I haven't managed to reproduce it when trying to create a repro project... but if I open my game project on 2020.3.22f1 it doesn't happen. Any ideas?
     
    Last edited: Nov 15, 2021
  17. swantonb

    swantonb

    Joined:
    Apr 10, 2018
    Posts:
    155
    Hi,
    I'm trying to swich Volume System Update Frequency to ViaScripting but i'm not sure how i'm supposed to approach this. What function should I be calling in order to update a volume after I modified it at runtime? (for example, I have a dropdown of color filters [color grading presets] and I want the volume to update when the player chooses one of those filters instead of every frame)
     
  18. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    You should create a new thread to get help with that.
     
  19. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    I figured out a way to reproduce this. It happens when the Scene/Game views are docked in the same group like this:

    Screen Shot 2021-11-16 at 11.36.54.png

    Then while in play mode, repeatedly switch between those views with the mouse or (cmd+1, cmd+2) and the editor will hang.

    If you put the Game view in a separate tab group or in a different window it doesn't hang but sometimes it takes a moment to respond after switching.

    I've been able to reproduce it on a fresh project using the 3D Sample Scene (URP) template. I'm seeing this with 2021.2.2f1 running Big Sur (Intel) and Monterey (Apple Silicon). I haven't tried other combinations.

    EDIT: for clarity
    EDIT2: Another way to make it hang is to put the Game View in separate window and resize it while in play mode.
    EDIT3: This only happens when VSync is enabled in the game view.
    EDIT4: Case 1381375
     
    Last edited: Nov 16, 2021
  20. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,512
  21. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    upload_2021-11-17_1-19-59.png

    Still cannot build WebGL, project is blank project using the 3D URP Core template, the scene juset has a rotating cube. Using Unity 2021.2.2f1
     
    crafTDev likes this.
  22. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    It turns out it only happens in the circumstances I mentioned if VSync is enabled in the Game View. I submitted a bug report for it (Case 1381375).
     
  23. OrlovskyConsultingGbR

    OrlovskyConsultingGbR

    Joined:
    Mar 17, 2020
    Posts:
    61
    I am using 2021.2.2f1 and looks great, i didn't encounter any bugs related to my game logic and communication with Unity Editor.
     
    LeonhardP likes this.
  24. Safemilk

    Safemilk

    Joined:
    Dec 14, 2013
    Posts:
    42
    I was on the beta and everything seemed fine, but when I upgraded to 2021.2.2f1 shadows and screen space reflection flicker very aggressively now. Nothing about the settings changed other than porting the project forward to 2021.2.2f1 from it's beta version. Any ideas?
     
  25. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,723
    Same build version same issue.
    Totally uncool :)

    upload_2021-11-17_10-7-18.png
     
  26. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,723
    Back to 2021.2.0f1 and the UI gizmo is back to normal.
     
  27. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    Hello,

    Try building again immediately after. I think that’s the same issue I have but it builds the second time so idk.

    Thanks,
    crafTDev
     
  28. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
  29. NotaNaN

    NotaNaN

    Joined:
    Dec 14, 2018
    Posts:
    324
    Interesting how the 2021.2 Betas seem to be more stable and less bug ridden than the official 2021.2 releases...
    Like, how does that even happen? o_O

    Anyway, how is 2021.2.3f1 compared to 2021.2.2f1? Any better? Worse?

    I so bad wanna upgrade to 2021.2.x but I don't want all these bugs. :oops:
     
    antosond likes this.
  30. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    I've now found workarounds for all the issues that were affecting our game but it was more painful than usual.
     
    NotaNaN likes this.
  31. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    NotaNaN likes this.
  32. throwingcat

    throwingcat

    Joined:
    Jul 29, 2016
    Posts:
    2
    GraphicEditor.cs:83 NullReferenceException upload_2021-11-19_11-35-8.png

    Exception Case
    upload_2021-11-19_11-30-16.png

    When using Inspector Class that inherited GraphicEditor, it occurs if the CustomerEditor target of Inspector Class does not inherit Graphic Class.

    I couldn't find any related information in the upgrading manual. I'm sorry if I didn't find it

    An error occurs in the newly created DrawAnchorsOnSceneView(SceneView sceneView) function.
    This function assumes that the target must inherit the Graphic Class.
     
  33. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    765
    I think it's more because only a small group of users use the betas and as soon as the first release appears, a much larger group of users updates where bugs are found that were overlooked (or not reported) in the betas.
     
  34. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,512
    I think he was going on about the regression bugs, where in beta it was fine, but for official version there is problem..
     
    NotaNaN likes this.
  35. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    765
    Some bugs that have now been found were probably already in the betas and were only found, or only occur under certain circumstances. This can possibly lead to the falsely believing that it is a regress of the release version. But that does not rule out real regressions.
    The reason for my posting is that I have the feeling that some people believe that due to the many bug reports here, the release version is less stable than the beta, which I don't believe.
     
  36. razzraziel

    razzraziel

    Joined:
    Sep 13, 2018
    Posts:
    362
    2021.2.3 is way better, at least I can now see my SceneView windows. But still it weirdly crashes when doing undo. Couldn't repro with test undos on empty scene and suddenly crash ended. Still need to investigate.
     
    NotaNaN likes this.
  37. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    Every game touches different parts of the engine. But in my case I had to go back to the beta because of several bugs that were introduced in the release.
     
    Last edited: Nov 22, 2021
    crafTDev and NotaNaN like this.
  38. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    329
    The "Render Objects" pass for Forward Renderers are not working anymore using this setup

    We were using the renderer feature in order to draw the UI over the PostProcessing
    And now it doesnt works (on VR mode when you put the headset)
    Also usinf "RenderAfterPostprocessing" seems to render "correctly" just that everything is drawn on a single eye, so is not workign at all
    upload_2021-11-19_16-9-30.png
     
  39. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    Yes, a fix has already been merged to the repository and will be backported in one of the next vendoring updates coming to 21.2.

    Thanks a lot for the report. We'll look into it.

    Thanks a lot! The issue has been reproduced internally: https://issuetracker.unity3d.com/product/unity/issues/guid/1381316

    Very glad to hear that!

    A fix for a similar sounding issue with the deferred renderer landed in 2021.2.2f1: https://issuetracker.unity3d.com/product/unity/issues/guid/1354681/

    Could you please submit a bug report for your use case so we can investigate?

    Should be fixed in 2021.2.3f1.

    It's being looked into by the devs. No ETA on a fix/resolution at this point.

    Thanks for submitting a bug report for this issue on top of posting here. We'll look into it. For future references, please share the issue ID of your report when you bring the issue up on the forum.
     
    crafTDev and spacepluk like this.
  40. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,135
    2021.2.3
    Something is wrong with asset previews.

    Prefab previews are blueish or sometimes black. Some of them are ok, but in such case I think this error is logged:
    I am not sure if this is fault of keyword changes, but game window and large inspector preview is fine.
    Additionaly I made custom window and it's using prefab and custom previews and this error is spammed sometimes:
    or there was error about something like "DrawPreviewInteral", but I can't reproduce it again.

    Also the same tool or custom editors now started to throw these kind of errors:
    // EDIT
    Is support for light editor theme officially dropped? It is even worse than previously, I really do not like this light blue for active ui elements.

    It could be bearable if at least icons where dark, but instead it's not just unpleasing, but tiring to watch. Still this is nothing if we compare this to new search in shader graph window:


    Placeholder text in search is shifted and active element is almost impossible to read...
    Search itself could be just a bit smarter with guessing what I need.
     
    Last edited: Nov 19, 2021
  41. chuyramos80530

    chuyramos80530

    Joined:
    Dec 11, 2020
    Posts:
    1
    Hola quería saber si alguien podría ayudarme a actualizar mis materiales, es que comencé mi juego en HDRP y lastimosamente de tiempo me di cuenta que no puedo usar HDRP en móviles y quiero cambiar el proyecto a URP ya que ese si es compatible con Android... al cambiarlo mis modelos salen de color blanco y no se como actualizar los materiales.. ayuda!
     
  42. razzraziel

    razzraziel

    Joined:
    Sep 13, 2018
    Posts:
    362
    Here is the URP forum, you can create a topic or search for similar requests:
    https://forum.unity.com/forums/universal-render-pipeline.383/
    And here is the Google Translate link to translate your request into English:
    https://translate.google.com
     
    LeonhardP likes this.
  43. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    I don't buy that, how do you explain going from Beta to release and the Editor has a huge delay. That was not in the beta lol.

    Still waiting to see if the WebGL shader build error is fixed yet.

    Thanks,
    crafTDev
     
    NotaNaN and SpockBauru like this.
  44. runner78

    runner78

    Joined:
    Mar 14, 2015
    Posts:
    765
    I don't know exactly what delay you mean, but I couldn't see any difference between the beta and the release.
     
  45. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    I don’t know, maybe you haven't been paying attention to this thread Lol! The first page of this thread was almost literally about that bug even the Unity Dev could reproduce without any extra info immediately. They didn’t do enough testing especially which such major issues, period.

    Edit: I’m gonna chalk up this rocky launch because we still in Covid year, although last year Covid was ravaging the world but even I don’t remember such a launch with Unity 2020.

    Thanks,
    crafTDev
     
  46. Crazy34

    Crazy34

    Joined:
    Jul 14, 2019
    Posts:
    50
    Hello Again @LeonhardP ,

    I wonder if the helpful information we sent on the ticket about this issue reaches you? No response was given. This issue still persists in version 3f. It has been negatively affecting our work on Unity 2021 for weeks. Please now take a look at this error as well. As I mentioned on the ticket, this error has been present since beta 13.

    For ticket:
    Issue ID: 1372327

    Thank you.
     
  47. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    The delay bug only affected macOS.
     
  48. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    329

    Nice here is the Report ID 1382221
     
    LeonhardP likes this.
  49. Egnech

    Egnech

    Joined:
    Aug 27, 2015
    Posts:
    27
    Hey there, I've tied 2021.2.3 so far so good. Excepts the Pixel Perfect Camera component with Upscale Render Texture is not working with Post Processing stack. The image get stretched far beyond the screen bounds. This issue is very critical for me, maybe someone can suggest a workaround?
     
    NotaNaN likes this.
  50. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,512
    We have issue with polygon collider 2D, and I think it is specific to Unity 2021.2.3f1 because I did not see this happening before.

    Basically, When you move game object with polygoncollider2D and move them around in scene using scene view, polygon collider gizmo (the actual shape) does not follow the movement and just stay on the previous position. If you toggle the collider on off the collider shape gizmo resets back to normal.

    This is not a critical bug in terms of runtime, but it is still super annoying and confusing as hell when you work in the editor making you think, "oh no, I moved child object instead of parent" but no... it is just Unity scene view bug.

    This bug is sooooo easy to reproduce and happens on any machine we have so I don't think it needs bug report.

    upload_2021-11-23_17-24-49.png
     
    NotaNaN likes this.
Thread Status:
Not open for further replies.