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

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;