This is a simple helper function downloading the assets stored at https://github.com/mikemahoney218/unity_assets .
Arguments
- asset
The asset to download. Available asset names are provided in available_assets.
- directory
Optionally, the directory to extract the downloaded models in. If NULL, the default, saves to
tools::R_user_dir("unifir").
See also
Other utilities:
add_default_player(),
add_prop(),
create_unity_project(),
find_unity(),
load_png(),
load_scene(),
new_scene(),
read_raw(),
save_scene(),
set_active_scene(),
validate_path(),
waiver()
Examples
if (interactive()) {
get_asset(asset = "tree_1", directory = tempdir())
}
