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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Asset Pipeline: Implemented accessor for saving data to .meta files.

Discussion in '2023.1 Beta' started by TJHeuvel-net, Mar 21, 2023.

  1. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    815
    Any details on this?
    • Asset Pipeline: Implemented accessor for saving data to .meta files.

    Not seeing any related method in the AssetDatabase class.
     
  2. Saniell

    Saniell

    Joined:
    Oct 24, 2015
    Posts:
    157
    It is especially weird since userData existed since forever
     
  3. Unity_Javier

    Unity_Javier

    Unity Technologies

    Joined:
    Mar 7, 2018
    Posts:
    172
    Hi!
    This is my release note :)
    So, it should not have been a public note because this was done on the C++ side only, but here we are!

    The issue that it addressed was that all over the codebase we had misc. string manipulations to edit some YAML which would result in the contents of a .meta file. When the new AssetOrigin feature (for the Asset Store) needed to add a new optional field to the .meta files, we went ahead and took that opportunity to tidy up the codebase and have a single class that would allow for the creation of the contents of a .meta file.

    Instead of having code sprinkled throughout the codebase that was appending strings in a (hopefully) YAML format, we now go through a single point of entry where we can clearly define what fields should be present in the .meta file, and do a final call to generate the string that represents the .meta file.

    Its not a user facing change, but more of a code cleanup change.
     
    mariandev likes this.
  4. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    815
    Please make it user facing, this sounds super useful!