Search Unity

Save MeshFilter as JSON file (or something else)

Discussion in 'Scripting' started by cristiandaniele, Aug 29, 2018.

  1. cristiandaniele

    cristiandaniele

    Joined:
    Aug 29, 2018
    Posts:
    1
    Hi guys, I need to save a GameObject to the Asset as a prefab. I properly save it but the saved GameObject has not the MeshFilter. I tried to save the MeshFilter as a JSON file but my JSON string is just : {mesh":{"instanceID":-3290}}. If I don't close the program, from this string I can get the right mesh file. If I close and open the program again I get null from this string... Can someone help me?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,686