Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Volume volumes = TerrainVolume;
- TerrainBytes tb = new TerrainBytes();
- tb.TerrainData = volumes.GetCurrentFrame().ToCompressedByteArray();
- string jsonBytes = JsonUtility.ToJson(tb);
- PlayerPrefs.SetString("Terrain_" + LevelName, jsonBytes);
Add Comment
Please, Sign In to add comment