Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. 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

Question Unable to change material attributes.

Discussion in 'UGUI & TextMesh Pro' started by wglxxx, Jul 18, 2021.

  1. wglxxx


    Oct 27, 2018
    I added some Image object in scrollview(Mask component is activated).
    When the maskable of the Image is activated, all the material properties
    cannot be changed on the inspector (including custom properties).
    Of course, it modified by code by code.(no error, but no effect)
    Code (CSharp):
    1. my_image.material.SetFloat("_MyParam", value);
    Can I use the Mask of the scrollview while also dynamically modifying
    the material properties of the sub-objects.
    If not, are there other solutions.