Search Unity

Changing dimensions of a rectangular area light via scripting

Discussion in 'High Definition Render Pipeline' started by sroebke, Nov 6, 2020.

  1. sroebke

    sroebke

    Joined:
    Sep 10, 2020
    Posts:
    6
    Hello all

    I have a rectangular area light that is set to illuminate in realtime. I need to change the dimensions of that area light programmatically, but I can seem to find a property that is exposed that will do that.

    Is this something that is not supported? If not are there any workarounds? I am creating a beam type effect I would like to cast light, but the beam has to be able to change length.