lib/u3d.rb in u3d-1.2.2 vs lib/u3d.rb in u3d-1.2.3

- old
+ new

@@ -46,6 +46,17 @@ require 'u3d/unity_versions' module U3d Helper = U3dCore::Helper UI = U3dCore::UI + + 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 end