Module: U3d

Defined in:
lib/u3d/version.rb,
lib/u3d.rb,
lib/u3d/asset.rb,
lib/u3d/cache.rb,
lib/u3d/utils.rb,
lib/u3d/commands.rb,
lib/u3d/installer.rb,
lib/u3d/downloader.rb,
lib/u3d/installation.rb,
lib/u3d/log_analyzer.rb,
lib/u3d/unity_module.rb,
lib/u3d/unity_runner.rb,
lib/u3d/unity_license.rb,
lib/u3d/unity_project.rb,
lib/u3d/unity_versions.rb,
lib/u3d/failure_reporter.rb,
lib/u3d/commands_generator.rb,
lib/u3d/download_validator.rb,
lib/u3d/hub_modules_parser.rb,
lib/u3d/ini_modules_parser.rb,
lib/u3d/unity_version_number.rb,
lib/u3d/unity_version_definition.rb

Overview

— BEGIN LICENSE BLOCK — Copyright © 2016-present WeWantToKnow AS

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. — END LICENSE BLOCK —

Defined Under Namespace

Modules: Downloader, HubModulesParser, INIModulesParser, UnityVersions, Utils Classes: Asset, BaseInstaller, Cache, Commands, CommandsGenerator, CommonInstaller, DownloadValidator, FailureReporter, Installation, InstallationUtils, Installer, IvyPlaybackEngineUtils, License, LinuxDependencies, LinuxInstallation, LinuxInstallationHelper, LinuxInstaller, LinuxValidator, LogAnalyzer, MacInstallation, MacInstaller, MacValidator, ModulePlaybackEngineUtils, Runner, UnityForums, UnityModule, UnityProject, UnityVersionComparator, UnityVersionDefinition, UnityVersionNumber, WindowsInstallation, WindowsInstallationHelper, WindowsInstaller, WindowsValidator

Constant Summary collapse

Helper =
U3dCore::Helper
UI =
U3dCore::UI
VERSION =
'1.3.2'
DESCRIPTION =
'Provides numerous tools for installing, managing and running the Unity game engine from command line.'
UNITY_VERSIONS_NOTE =
"Unity uses the following version formatting: 0.0.0x0. The \'x\' can takes different values:\n"\
"\t. 'f' are the main release candidates for Unity\n"\
"\t. 'p' are patches fixing those releases\n"\
"\t. 'b' are the beta releases\n"\
"\t. 'a' are the alpha releases (not currently discovered)\n"
DEFAULT_LINUX_INSTALL =
'/opt/'
DEFAULT_MAC_INSTALL =
'/'
DEFAULT_WINDOWS_INSTALL =
'C:/Program Files/'
UNITY_DIR =
"Unity_%<version>s"
UNITY_DIR_LONG =
"Unity_%<version>s_%<build_number>s"
UNITY_DIR_LINUX =
"unity-editor-%<version>s"
UNITY_DIR_LINUX_LONG =
"unity-editor-%<version>s_%<build_number>s"
UNITY_DIR_CHECK =
/Unity_\d+\.\d+\.\d+[a-z]\d+/.freeze
UNITY_DIR_CHECK_LINUX =
/unity-editor-\d+\.\d+\.\d+[a-z]\d+\z/.freeze
UNITY_VERSION_LINUX_POS_LE_2019 =

Linux unity_builtin_extra seek position for version

20
UNITY_VERSION_LINUX_POS_GT_2019 =
48
U3D_DO_NOT_MOVE =
".u3d_do_not_move"

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object



54
55
56
57
58
59
60
61
62
63
# File 'lib/u3d.rb', line 54

def self.const_missing(const_name)
  deprecated = {
    PlaybackEngineUtils: IvyPlaybackEngineUtils,
    INIParser: INIModulesParser
  }
  super unless deprecated.keys.include? const_name
  replacement = deprecated[const_name]
  UI.deprecated "DEPRECATION WARNING: the class U3d::#{const_name} is deprecated. Use #{replacement} instead."
  replacement
end