Forum rules - please read before posting.

Can Somebody give little script Code help for me pls?

Hi,
I can't code, but I really need a little help for it. I use HDRP and I'd like to enable/disable shadow of the lights, so there is a checkbox "Enable shadows" under Light Inspector. I would like to turn on/off it by triggers, so I need a little script for it.

I think it's a little job for a real developer, so I'd appreciate it:)))

Comments

  • With the Object: Call event and Object: Send message Actions, you can run custom code from a Trigger without need for a custom AC Action.

    As this isn't AC related, you should post on the Unity forums for help with such a script.

    Scripting is not necessary for this, however: you can control this property through animation. Attach an Animator to the object, create a new animation in the Animation window, and you'll find that you can keyframe this checkbox within the animation.

    For more on animating in Unity, see Unity's own documentation.

  • Ohh yes you're right, I can solve it with animating:) I try to find some code on forums, if I couldn't find, I'll animate it.:)

    Really thank you Chris!:)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.