Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Get duplicated AssetName according to EditorSettings.NamingScheme

Discussion in 'Scripting' started by eliashodel, Apr 17, 2022.

  1. eliashodel

    eliashodel

    Joined:
    Jan 25, 2019
    Posts:
    18
    Hello There!

    Is there any Helper function in UnityEditor namespace that can give you the FileName of an Asset with the selected NamingScheme?

    AssetWithSpaceParenthesis => AssetWithSpaceParenthesis (1),
    AssetWithDot => AssetWithDot.1
    AssetWithUnderScore => AssetWithUnderScore_1

    Any Hints, so i dont have to write it myself? :)

    Thanks!
     
  2. eliashodel

    eliashodel

    Joined:
    Jan 25, 2019
    Posts:
    18