Skip to content

Instantly share code, notes, and snippets.

@zsoi
zsoi / TerrainDataCloner.cs
Last active January 4, 2024 17:57
Helper to deep-copy a TerrainData object in Unity3D
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace ZS.Tools
{
/// <summary>
/// Provides means to deep-copy a TerrainData object because Unitys' built-in "Instantiate" method