Skip to main content

Root Variables

Introduction

Root variables are RockTomate's built-in variables that can be used from anywhere. They can be constant or dynamic. Examples would be a project directory path or even the name of a currently running job.

To see all available root variables, click the “Root” tab in "Variable Manager" window. You'll be able to see values of constant root variables right away, but dynamic variables are marked as <dynamic variable>.

Right-clicking a variable will let you copy it to the clipboard to save the trouble of typing it manually.

References

VariableTypeDescription
%AbsoluteURL%StringThe URL of the document. For WebGL, this a web URL. For Android, iOS, or Universal Windows Platform (UWP) this is a deep link URL.
%AltDirSeparatorChar%CharThe currently supported directory separator.
%AppDataDir%StringPath to the "AppData" directory of the local machine.
%AppVersion%StringCurrent version of the player application.
%AssetsDir%StringFile path to the "Assets" directory of the Unity project.
%LibraryDir%StringFile path to the "Library" directory of the Unity project.
%BuildGUID%StringGUID of this player build (Unity 5.6 and above).
%CloudProjectID%StringCloud Project GUID.
%CommandLineArgs%String[]Command line arguments that were launched with this Unity executable.
%CompanyName%StringName of the company as specified in Project Settings.
%CompileSymbols%String[]Compile Symbols of the Target Platform.
%CurrentBuildTarget%BuildTargetCurrent build target selected for this project.
%CurrentTime%DateTimeLocal time.
%DesktopDir%StringLeads to a desktop directory of this user.
%DirSeparatorChar%CharCharacter separator for directories.
%HasProLicense%BooleanWhether or not this User has a Pro License.
%InstallerName%StringName of the installer.
%InstallMode%ApplicationInstallModeInstall mode
%IsBatchMode%BooleanWhether this Unity executable was launched in batch mode.
%IsBuilding%BooleanWhether this Unity Editor is building anything.
%IsCompiling%BooleanWhether this Unity Editor is compiling anything.
%IsConsole%BooleanWhether the current build target is console-related (e.g PS4).
%IsEditor%BooleanWhether we're running inside Unity editor.
%IsMobile%BooleanWhether the current build target is mobile-related (e.g iOS).
%IsOnline%BooleanWhether this machine has access to the Internet.
%IsPaused%BooleanWhether Play Mode has been paused.
%IsPlaying%BooleanWhether the Play Mode is playing.
%IsTempProject%BooleanWhether this is the temporary Unity project.
%LocalAppDataDir%StringDirectory path of LocalAppData of this machine.
%NewLine%StringNew line.
%PathSeparatorChar%CharCharacter separator for paths.
%PersistentDataDir%StringPaths to a persistent data directory.
%ProductName%StringProduct Name as specified in Project Settings.
%ProjectDir%StringRoot directory of this project.
%RunningJobId%StringGUID of a currently running Job.
%RunningJobName%StringName of a currently running Job.
%RunningJobPath%StringFile path of a currently running Job.
%StreamingAssetsDir%StringPath to Streaming Assets directory.
%SystemLanguage%SystemLanguageCurrent system language of this machine.
%TargetPlatforms%BuildTarget[]All valid platforms this Unity engine can build to.
%TempCacheDir%StringPath to temporary/cache directory.
%TimeSinceStartup%DoubleTime passed (in seconds) since this Unity editor has started.
%UnityDir%StringDirectory to the executable of this Unity engine
%UnityVersion%StringVersion of this Unity Editor.
%VolumeSeparatorChar%CharCharacter separator for volumes.
%WorkDir%StringCurrent working directory.
%ScriptableRuntimeVersion%ScriptingRuntimeVersionUnity project's scriptable runtime version.
%IsGitRepo%BooleanWhether this project is a Git repository.
%GitLastCommitHash%StringCommit hash (SHA format) of the last commit. Empty if the current project is not a Git repository.
%GitCurrentBranch%StringName of a currently checked out branch. Empty if the current project is not a Git repository.
%IncludedScenesInBuild%String[]Scene paths of all scenes that are included in build configuration.
%AllScenesInBuild%String[]Scene paths of all scenes that are included in build configuration (including disabled ones).