class U3d::ModulePlaybackEngineUtils

Public Class Methods

list_module_configs(playbackengine_parent_path) click to toggle source
# File lib/u3d/installation.rb, line 131
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) click to toggle source
# File lib/u3d/installation.rb, line 137
def self.module_name(config_path)
  File.basename(File.dirname(config_path)).gsub("Support", "")
end