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

Feature Request Add a 'Shadow Intensity' property to Shadow Caster 2D.

Discussion in '2D Experimental Preview' started by NotaNaN, Oct 19, 2021.

?

Should the Shadow Castor 2D component have its own 'Shadow Intensity' property?

  1. Of course!

    6 vote(s)
    100.0%
  2. No.

    0 vote(s)
    0.0%
  1. NotaNaN

    NotaNaN

    Joined:
    Dec 14, 2018
    Posts:
    325
    Having the 'Shadow Intensity' property on the
    Light 2D
    component does have its benefits and should stay — but why does the
    Shadow Caster 2D
    component not have its own version of this property for us to adjust on a per shadow-caster basis?

    For instance, in many scenarios I wish to alter the strength of a particular
    Shadow Caster 2D
    on-the-fly at runtime — interpolating it between maximum strength and no strength as I fade the object (which is usually a piece of terrain) in and out of existence.

    With the current setup, I have to drive the 'Shadow Intensity' property on the
    Light 2D
    component, which effects every single
    Shadow Caster 2D
    in the scene!


    What I propose is this — add a 'Shadow Intensity' property to the
    Shadow Caster 2D
    that acts as a scalar to the
    Light 2D
    'Shadow Intensity' property, effecting only that
    Shadow Caster 2D
    .

    Doing this will give users (like myself) a huge boost in flexibility when it comes to the lighting conditions we can create and the interesting visual effects we can make.
     
    Last edited: Jan 15, 2022
    PatientRock and Deadcow_ like this.