Guest User

Untitled

a guest
Jul 5th, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Volume volumes = TerrainVolume;
  2. TerrainBytes tb = new TerrainBytes();
  3. tb.TerrainData = volumes.GetCurrentFrame().ToCompressedByteArray();
  4. string jsonBytes = JsonUtility.ToJson(tb);
  5. PlayerPrefs.SetString("Terrain_" + LevelName, jsonBytes);
Add Comment
Please, Sign In to add comment