Print the version of the Unity Editor in use.
Arguments
- unity
The path to the Unity executable on your system (importantly, not the UnityHub executable). If
NULL
, checks to see if the environment variable or optionunifir_unity_path
is set; if so, uses that path (preferring the environment variable over the option if the two disagree).
Examples
try(
unity_version()
)
#> Error in find_unity() : Couldn't find Unity executable at provided path.
#> Please make sure the path provided to 'unity' is correct.