Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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,843
    A struct will work well. Just call it DefaultSettings or something.