[][src]Function uvm_install2::install

pub fn install<V, P, I>(
    version: V,
    requested_modules: Option<I>,
    install_sync: bool,
    destination: Option<P>
) -> Result<Installation> where
    V: AsRef<Version>,
    P: AsRef<Path>,
    I: IntoIterator,
    I::Item: AsRef<Component>, 

Installs Unity Editor with optional modules to a destination.

use uvm_install2::unity::{Component, Version};
let version = Version::b(2019, 3, 0, 8);
let components = [Component::Android, Component::Ios];
let install_sync_modules = true;
let installation = uvm_install2::install(&version, Some(&components), install_sync_modules, Some("/install/path"))?;