Class: U3d::ModulePlaybackEngineUtils
- Inherits:
-
Object
- Object
- U3d::ModulePlaybackEngineUtils
- Defined in:
- lib/u3d/installation.rb
Class Method Summary collapse
Class Method Details
.list_module_configs(playbackengine_parent_path) ⇒ Object
137 138 139 140 141 |
# File 'lib/u3d/installation.rb', line 137 def self.list_module_configs(playbackengine_parent_path) # this should work on all platforms, non existing paths being ignored... Dir.glob("#{playbackengine_parent_path}/PlaybackEngines/*/modules.asset") | Dir.glob("#{playbackengine_parent_path}/Unity.app/Contents/PlaybackEngines/*/modules.asset") end |
.module_name(config_path) ⇒ Object
143 144 145 |
# File 'lib/u3d/installation.rb', line 143 def self.module_name(config_path) File.basename(File.dirname(config_path)).gsub("Support", "") end |