Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Why doesn't ui use material property blocks

Discussion in 'Graphics Dev Blitz Day 2023 - Q&A' started by Chunikus, May 25, 2023.

  1. Chunikus

    Chunikus

    Joined:
    Sep 5, 2020
    Posts:
    28
    Suppose you have 10 buttons. On mouse hover you make a button brighter. If you use one material, and you change property "brightness" on that material. They all are going to become brighter.

    If you give all 10 buttons new instance of material, you increase batches.

    Why is this problem solved for rest of the rendering with material property blocks but not UI? Or is there some other approach I'm missing?
     
    Last edited: May 25, 2023
    Prodigga likes this.