Skip to content

StringFormatter

James edited this page Sep 28, 2025 · 6 revisions

String Formatter Commands

The String Formatter is used to format strings in the build task. It supports commands that can be used to insert values into the string.

The following commands are available:

  • {buildName}: The name of the build as specified in a build config.
  • {buildNumber}: The unique number of the build that is produced if enabled in Project Settings.
  • {buildTarget}: Which platform targeting for the next build as defined in Build Settings.
  • {buildTargetGroup}: The target group of the upcoming build as defined in Player Settings.
  • {bundleVersion}: The version of your project for android/ios as specified in Player Settings.
  • {cacheFolderPath}: The path where all files and builds are stored when build uploader is working.
  • {companyName}: The name of your company as specified in Player Settings.
  • {date}: The current local date in the format YYYY-MM-DD.
  • {dateTime}: The current local date and time in the format YYYY-MM-DD HH-MM-SS.
  • {machineName}: The name of the machine running the build.
  • {persistentDataPath}: The path of the Persistent Data folder
  • {productName}: The name of your product as specified in Player Settings.
  • {projectPath}: The path of your Unity Project contains the Assets folder.
  • {scriptingBackend}: The scripting backend for the next build as defined in Player Settings.
  • {taskDescription}: The description of the current task being executed.
  • {taskFailedReasons}: Gets the reasons why the task failed to upload all destinations.
  • {taskProfileName}: The name of the upload profile or task specified when creating the task.
  • {time}: The current local time in the format HH-MM-SS.
  • {unityVersion}: The version of Unity you are using.
  • {version}: The version of your project as specified in Player Settings.

Clone this wiki locally