Search Unity

Discussion Reset button for UI attributes

Discussion in 'Scripting' started by Momissimo, Nov 20, 2022.

  1. Momissimo

    Momissimo

    Joined:
    Aug 15, 2019
    Posts:
    18
    I would like to implement a method that reset some attributes of the Render Pipeline Assets that I let the player modify (Vsync Count, Antialiasing filter, RealTime Reflection). I was thinking to store a copy of the initial data into a Struct class and recall the data when the reset button is pressed. What do you think?
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    A struct will work well. Just call it DefaultSettings or something.