Search Unity

Is it possible to assign a text asset property in the editor for testing?

Discussion in 'Testing & Automation' started by BillDNA, Dec 2, 2021.

  1. BillDNA

    BillDNA

    Joined:
    Jun 3, 2014
    Posts:
    7
    So i have a .json save file of the game right before it errored and so i want to be able to run testing agains that save file so i can debug the code with out having to run the whole game. I would like to be able to assign the textAsset in the editor like one dose for game objects and scriptable objects. Not sure how this is possible with my current understanding of how Unity so serialization.

    So here would be the code.
    Screen Shot 2021-12-02 at 2.54.09 PM.png

    And in the editor window when i select the test file I would like to be able to drag and drop the save file.

    I know i can load the file using the specific path to the file but thats not a very clean.

    Any ideas on how to achieve something like this? or even some good search terms to get me closer to an answer.

    Thanks,