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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

ARFoundation - Where to place directional? In scene or in prefab? To move during runtime

Discussion in 'AR' started by newguy123, Feb 12, 2019.

  1. newguy123


    Aug 22, 2018
    Hi guys

    I need to be able to move my sun during runtime. Where is the recommended place to put the sun, taking into consideration my model is very large and in total covers 500meter.

    For LWRP, I had issues getting the shadows to display consistantly, so I switched back to standard pipeline. I need to be able to change the sun position and rotation during runtime.

    I also have a script that rotates the model in its own axis, and the sun should turn with it. Perhaps I should stick the sun in scene and turn the ARSession Origin instead?