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

Universal Render Pipeline - no lights / shadows in build

Discussion in 'Universal Render Pipeline' started by yellsellsg, Mar 10, 2020.

  1. yellsellsg

    yellsellsg

    Joined:
    Jan 21, 2020
    Posts:
    9
    upload_2020-3-10_18-58-6.png

    Hi sorry for the newbie Q. I have the URP running fine in play [RHS] but when building to PC, Mac / Standalone. I cannot get lighting / shadows to work [LHS]
    I obviously need to change an out of the box setting but don't know what?
    Thanks for looking

    Regards...

    upload_2020-3-10_19-0-22.png

    upload_2020-3-10_19-3-21.png
     
  2. yellsellsg

    yellsellsg

    Joined:
    Jan 21, 2020
    Posts:
    9
    i'm sort of coming to the conclusion that this is a restriction due to the free version of unity vs paid. Can someone please confirm.
     
  3. yellsellsg

    yellsellsg

    Joined:
    Jan 21, 2020
    Posts:
    9
    I solved the problem. The materials were not being picked up by the build. need to explicitly reference the materials.
     
  4. j00hi

    j00hi

    Joined:
    Nov 18, 2012
    Posts:
    72
    Hmm, I am currently having the same problem and I'm unable to find out how to add the materials. Would you mind describing how to explicitly reference the materials so that they get illuminated?
     
  5. yellsellsg

    yellsellsg

    Joined:
    Jan 21, 2020
    Posts:
    9
    I took the actual material files and made copies and placed into the project asset library.
    I then resource loaded the materials and assigned them to the gameobject render in scripts
     
  6. clayton_axel

    clayton_axel

    Joined:
    Dec 4, 2018
    Posts:
    3
    upload_2022-4-20_11-7-10.png

    Be sure to include the material shader you are using in the objects in the list. (Edit->Project Settings->Graphics)