AssetDatabase.CopyAsset Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.CopyAsset

static function CopyAsset (path : String, newPath : String) : boolean

Description

Duplicates the asset at path and stores it at newPath

All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"