Class: U3d::LinuxInstallation
Constant Summary
Constants inherited
from Installation
Installation::NOT_PLAYBACKENGINE_PACKAGES, Installation::PACKAGE_ALIASES
Instance Attribute Summary
Attributes inherited from Installation
#root_path
Instance Method Summary
collapse
create, #do_not_move!, #do_not_move?, #initialize, #package_installed?
Instance Method Details
#clean_install? ⇒ Boolean
337
338
339
|
# File 'lib/u3d/installation.rb', line 337
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK_LINUX).nil?
end
|
#default_log_file ⇒ Object
295
296
297
|
# File 'lib/u3d/installation.rb', line 295
def default_log_file
"#{ENV['HOME']}/.config/unity3d/Editor.log"
end
|
#exe_path ⇒ Object
299
300
301
|
# File 'lib/u3d/installation.rb', line 299
def exe_path
"#{root_path}/Editor/Unity"
end
|
#module_name_pattern(module_name) ⇒ Object
323
324
325
326
327
328
329
330
331
332
333
334
335
|
# File 'lib/u3d/installation.rb', line 323
def module_name_pattern(module_name)
case module_name
when 'Documentation'
return "#{root_path}/Editor/Data/Documentation/"
when 'StandardAssets'
return "#{root_path}/Editor/Standard Assets/"
when 'MonoDevelop'
return "#{root_path}/MonoDevelop/"
else
UI.crash! "No pattern is known for #{module_name} on Linux"
end
end
|
#path ⇒ Object
303
304
305
306
|
# File 'lib/u3d/installation.rb', line 303
def path
UI.deprecated("path is deprecated. Use root_path instead")
@root_path || @path
end
|
#version ⇒ Object
286
287
288
289
|
# File 'lib/u3d/installation.rb', line 286
def version
path = "#{root_path}/Editor/Data/Resources/unity_builtin_extra"
InstallationUtils.(path)
end
|