Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Unity 2020.3 Accessing 2D lighting through scripts - Namespace throwing syntax

Discussion in '2D Experimental Preview' started by Devivk, May 6, 2022.

  1. Devivk

    Devivk

    Joined:
    Jul 19, 2018
    Posts:
    5
    I've been looking the last couple days for how to change 2d lighting through code. My issue is any namespace I find will throw a syntax.

    I've tried UnityEngine.experimental.rendering.universal also .LWRP nothing seems to work I always get a syntax while using the namespace if I try to extend from rendering. Anyone know of a fix?
     
    path14 likes this.
  2. path14

    path14

    Joined:
    Apr 9, 2017
    Posts:
    113
    I have the same issue atm...
     
  3. path14

    path14

    Joined:
    Apr 9, 2017
    Posts:
    113
    ah, it's:
    using UnityEngine.Rendering.Universal;