Manual     Reference     Scripting  
  
Scripting > Editor Classes > AssetDatabase   

AssetDatabase.GenerateUniqueAssetPath  

static function GenerateUniqueAssetPath (path : string) : string

Description

Creates a new unique path for an asset.

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