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. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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;