Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

No Grass

Discussion in 'Web' started by nsmith1024, Mar 28, 2017.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    Anybody knows why grass would appear when run in the editor, but when built for WebGL there is no grass?

    STEPS:

    1. Create a new Unity Project and scene
    2. Import the standard Unity Environment Package (comes with unity)
    3. Add terrain
    4. Add grass from the Unity Environment Package to the terrain

    Run it in the editor, you can see the grass.

    Compile SAME project for WebGL, run it in the browser.......NO GRASS!!!

    Im trying to create a forest scene, it looks great in the editor, but when i run it in WebGL the terrain trees appear but no grass, it looks WAY better with grass, without the grass it looks bare and boring!

    Is there something special i have to do to see the grass in WebGL?

    Thanks
     
    Last edited: Mar 29, 2017
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
  3. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    870
    im using version 5.4.0b24, maybe the bug is in that version?

    I cant use newer vunity ersion because newer versions generate WebGL builds that is 50 meg larger than builds produced with 5.4 b24
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070