Learn R Programming

unifir (version 0.2.4)

create_unity_project: Create a new Unity project.

Description

Create a new Unity project.

Usage

create_unity_project(path, quit = TRUE, unity = NULL)

Value

TRUE, invisibly.

Arguments

path

The path to create a new Unity project at.

quit

Logical: quit Unity after creating the project?

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 option unifir_unity_path is set; if so, uses that path (preferring the environment variable over the option if the two disagree).

See Also

Other utilities: add_default_player(), add_prop(), find_unity(), get_asset(), load_png(), load_scene(), new_scene(), read_raw(), save_scene(), set_active_scene(), validate_path(), waiver()

Examples

Run this code
# \donttest{

if (interactive()) create_unity_project(file.path(tempdir(), "project"))
# }

Run the code above in your browser using DataLab