Search Unity

namespace Unity.Rendering disappeared after upgrading to entities preview 23

Discussion in 'Graphics for ECS' started by georgeq, Jan 19, 2019.

  1. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    I'm getting this error:

    The type or namespace name 'Rendering' does not exist in the namespace 'Unity' (are you missing an assembly reference?

    after the upgrade.
     
    macagu likes this.
  2. NoDumbQuestion

    NoDumbQuestion

    Joined:
    Nov 10, 2017
    Posts:
    186
  3. sSaltyDog

    sSaltyDog

    Joined:
    Mar 4, 2017
    Posts:
    37
    Thanks for this. I'm missing something though, what namespace should I be using for RenderMesh?

    Unity.Rendering no longer exists and there is no Unity.HybridRenderer namespace. What directive do I need to use in order to fix the following?

    The type or namespace name 'RenderMesh' could not be found (are you missing a using directive or an assembly reference?)
     
  4. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Did you add package to manifest?
    "com.unity.rendering.hybrid"
     
  5. sSaltyDog

    sSaltyDog

    Joined:
    Mar 4, 2017
    Posts:
    37
    Thanks for replying. I had added it from the package manager. I've also resolved the issue by restarting Unity and VS Code. After that I was able to add using Unity.Rendering which contains RenderMesh.

    Fixed :)
     
  6. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    how exactly you did you do that?

    I did that but now I'm getting a Unity Package Manager Error when ever I try to start Unity.

    I tried:

    "com.unity.rendering.hybrid"
    "com.unity.rendering.hybrid" :
    "com.unity.rendering.hybrid" : "1.0.0"
    "com.unity.rendering.hybrid" : "0.0.12-preview.23"
    "com.unity.rendering.hybrid" : "0.1.49-preview"

    but none of these works.
     
  7. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,759
    Are you just randomly picking numbers?

    "com.unity.rendering.hybrid": "0.0.1-preview.3",
     
    Jay-Pavlina likes this.
  8. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Use package manager.
     
  9. sSaltyDog

    sSaltyDog

    Joined:
    Mar 4, 2017
    Posts:
    37
    Select the Package Manager from the Window menu in Unity. Select All Packages in the drop-down at the top left. Locate the Hybrid Renderer package and use the options at the top right to install.

    Here's a snippet from my manifest.json

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.ads": "2.3.1",
    4.     "com.unity.analytics": "3.2.2",
    5.     "com.unity.burst": "0.2.4-preview.41",
    6.     "com.unity.collab-proxy": "1.2.15",
    7.     "com.unity.entities": "0.0.12-preview.23",
    8.     "com.unity.package-manager-ui": "2.0.3",
    9.     "com.unity.purchasing": "2.0.3",
    10.     "com.unity.render-pipelines.lightweight": "4.6.0-preview",
    11.     "com.unity.rendering.hybrid": "0.0.1-preview.3",
    12.     "com.unity.shadergraph": "4.6.0-preview",
     
  10. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    Thanks