AssetDatabase.CopyAsset 复制资源


static function CopyAsset (path : string, newPath : string) : bool

Description描述

Duplicates the asset at path and stores it at newPath

复制指定路径的资源文件到一个新的路径。

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

所有的路径都是相对于工程目录文件。 例如” Assets/MyTextures/hello.png”。


,