get_asset {unifir}R Documentation

Download prefabs for Unity

Description

This is a simple helper function downloading the assets stored at https://github.com/mikemahoney218/unity_assets .

Usage

get_asset(asset, directory = NULL)

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())
}

[Package unifir version 0.2.4 Index]