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. Dismiss Notice

Canvas not rendering in Game mode only

Discussion in 'Entity Component System' started by instriker_911, May 26, 2022.

  1. instriker_911

    instriker_911

    Joined:
    Mar 31, 2022
    Posts:
    27
    Hi.

    I have a case where I try to render a World Space Canvas, that is created inside a SubScene, but up to now I completely failed to make it work.

    My camera won't render my Canvas, but it will render any other entity correctly, or even Canvas that are outside of subscene. I tried to render it as GameObject with the "Conver to Entity (Stop)", but it didn't help

    How to reproduce

    Prepare standard scene


    1. Create a new Scene (it will create a new Main Camera)
    2. Add a new canvas to the scene
    3. Set the canvas to World Space
    4. Add a Panel to the canvas
    5. Adjust the camera until you see the panel in camera view of the Scene View
    6. Hit "Play" and Validate that we can see the Panel in Game mode
      • Select the camera and you will the panel render
      • Hit "Play" and you will the panel render
        upload_2022-5-25_21-20-32.png
    Now create the subscene
    1. Right click the canvas in Hierarcy and then "New Sub Scene > From Selection"
    2. Save the new subscene
    3. Add "Convert To Entity (Stop)" on the canvas
    4. Select the camera in Hierarchy and validate you still see the panel in camera view of the Scene View
    5. upload_2022-5-25_21-19-56.png
    6. Hit "Play" and enter Game Mode
      • PROBLEM: The Canvas (panel) do not render
        upload_2022-5-25_21-20-9.png
    Miscelanous notes

    My packages versions:

    Code (Boo):
    1. {
    2.   "dependencies": {
    3.     "com.unity.burst": "1.6.5",
    4.     "com.unity.cinemachine": "2.8.4",
    5.     "com.unity.collab-proxy": "1.15.16",
    6.     "com.unity.collections": "1.2.3",
    7.     "com.unity.entities": "0.50.1-preview.2",
    8.     "com.unity.ext.nunit": "1.0.6",
    9.     "com.unity.ide.visualstudio": "2.0.15",
    10.     "com.unity.ide.vscode": "1.2.5",
    11.     "com.unity.jobs": "0.50.0-preview.8",
    12.     "com.unity.mathematics": "1.2.6",
    13.     "com.unity.physics": "0.50.0-preview.43",
    14.     "com.unity.platforms": "0.50.0-preview.4",
    15.     "com.unity.probuilder": "5.0.4",
    16.     "com.unity.quicksearch": "2.0.2",
    17.     "com.unity.render-pipelines.universal": "10.9.0",
    18.     "com.unity.rendering.hybrid": "0.50.0-preview.24",
    19.     "com.unity.test-framework": "1.1.31",
    20.     "com.unity.testframework.graphics": "7.8.23-exp.2",
    21.     "com.unity.textmeshpro": "3.0.6",
    22.     "com.unity.timeline": "1.6.4",
    23.     "com.unity.ugui": "1.0.0",
    24.     "com.unity.modules.ai": "1.0.0",
    25.     "com.unity.modules.androidjni": "1.0.0",
    26.     "com.unity.modules.animation": "1.0.0",
    27.     "com.unity.modules.assetbundle": "1.0.0",
    28.     "com.unity.modules.audio": "1.0.0",
    29.     "com.unity.modules.cloth": "1.0.0",
    30.     "com.unity.modules.director": "1.0.0",
    31.     "com.unity.modules.imageconversion": "1.0.0",
    32.     "com.unity.modules.imgui": "1.0.0",
    33.     "com.unity.modules.jsonserialize": "1.0.0",
    34.     "com.unity.modules.particlesystem": "1.0.0",
    35.     "com.unity.modules.physics": "1.0.0",
    36.     "com.unity.modules.physics2d": "1.0.0",
    37.     "com.unity.modules.screencapture": "1.0.0",
    38.     "com.unity.modules.terrain": "1.0.0",
    39.     "com.unity.modules.terrainphysics": "1.0.0",
    40.     "com.unity.modules.tilemap": "1.0.0",
    41.     "com.unity.modules.ui": "1.0.0",
    42.     "com.unity.modules.uielements": "1.0.0",
    43.     "com.unity.modules.umbra": "1.0.0",
    44.     "com.unity.modules.unityanalytics": "1.0.0",
    45.     "com.unity.modules.unitywebrequest": "1.0.0",
    46.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    47.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    48.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    49.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    50.     "com.unity.modules.vehicles": "1.0.0",
    51.     "com.unity.modules.video": "1.0.0",
    52.     "com.unity.modules.vr": "1.0.0",
    53.     "com.unity.modules.wind": "1.0.0",
    54.     "com.unity.modules.xr": "1.0.0"
    55.   }
    56. }
    57.  
    Question

    Any tips / ideas on how to fix?

    Thank you!
     
  2. Donitry9257

    Donitry9257

    Joined:
    Jun 2, 2021
    Posts:
    3
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,574
    OP was using Entities 0.50.
    Now 1.0 has changed a lot since.
    Please do not necro post pointlessly.
    Or at least link relevant information to Entities 0.50.

    Either way subscene canvas didn't work then. Neither now.