Announcement

Collapse
No announcement yet.

Turning on/off materials on lots of lights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Turning on/off materials on lots of lights

    Hi

    I have a blueprint setup to switch on and off ceiling spot lights using a trigger and switch.
    I`m using the tags of the spotlights in each room of a house to control them, each room has about 8 spotlights. But i need to change the material of the actual spot mesh (a plane with an alpha spotlight material). I`d rather not have to create a blueprint that includes each spotlight object. Is there a way I could change the spot mesh material throughout the scene to either an off or an on version within my blueprint?

    Thanks

    #2
    Get All actor of class > For each loop > your code

    Comment


      #3
      ok thanks but how do i get the spotlight material i want to change be part of the actor class?

      Comment


        #4
        Look for dynamic material instance and scalar parameter in material <> Blueprint

        Comment

        Working...
        X