Search Unity

Bug Lilght 2D Volumetric Intensity read only?

Discussion in '2D' started by Armadous, Mar 27, 2023.

  1. Armadous

    Armadous

    Joined:
    Apr 6, 2013
    Posts:
    7
    I want to control the volumetric intensity of a `Light 2D` in script but the property is read only.

    upload_2023-3-26_21-51-15.png

    Code (CSharp):
    1. public float volumeIntensity => m_LightVolumeIntensity;
    This seems odd considering that `shadowVolumeIntensity` has a setter. Is this an oversight? Why would intensity not be settable in code but shadow strength is?
     
  2. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    96
    Yes, it was probably overlooked, volumetric intensity should have a setter. Will create a bug for this.
     
  3. Armadous

    Armadous

    Joined:
    Apr 6, 2013
    Posts:
    7
    That's good to know. Is it possible to track issues from the outside? I would like to be able to keep tabs on a fix for this.
     
  4. Vuhdu

    Vuhdu

    Joined:
    Jan 5, 2017
    Posts:
    3
    Any news on this? It's been a few months
    @kennyy_ _
     
    Last edited: Jul 9, 2023
  5. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    96
    This has been backported to the following versions - 2021.3.26f1, 2022.3.1f1, 2023.1.0b19 and 2023.2.0a12. Depending on which Unity version you are on, you should be able to update accordingly to get the change.