Announcement

Collapse
No announcement yet.

Setting Static Switch parameters of a Material Instance in Python

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

    Setting Static Switch parameters of a Material Instance in Python

    Hi all,

    Documentation at https://docs.unrealengine.com/en-US/...ngLibrary.html shows that we can get the material static switch parameters through get_material_default_static_switch_parameter_value(material, parameter_name). There are set methods for scalar, texture and vector paramters, but not for static switches. Can anyone please help me with a way to set static switch paramater values?

    Thanks

    #2
    I am wondering the same thing. Did you find any workaround?

    Comment


      #3
      Same here...

      Comment


        #4
        Tried setting them using the set scalar? Working in angelscript and that seem to be what I've used.

        Comment


          #5
          Didn't manage to do it using scalar. Anyone knows a way to achieve this?

          Comment


            #6
            A workaround is to create material instances variants with these static parameters turned on/off and select those instead of settings the parameters via script

            Comment

            Working...
            X