Hello. I’m trying to make a duplicate of my terrain by pressing a key in-game. I’ve tried
using UnityEditor;
AssetDatabase.CopyAsset("Assets/My Assets/NewTerrain.asset", "Assets/My Assets/NewTerrain2.asset");
AssetDatabase.Refresh();
but it doesn’t work… it stops a bit but there is no new asset created. Is the path not declared this way?
Please help!
Edit: solved. srry I just mistyped the name of my terrain :neutral: