|
@@ -51,6 +51,12 @@ class Any extends Resource {
|
|
return loader.loadCache(entry.path, hxd.res.Sound);
|
|
return loader.loadCache(entry.path, hxd.res.Sound);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ #if hide
|
|
|
|
+ public function toPrefab() {
|
|
|
|
+ return loader.loadCache(entry.path, hide.prefab.Resource);
|
|
|
|
+ }
|
|
|
|
+ #end
|
|
|
|
+
|
|
public function to<T:hxd.res.Resource>( c : Class<T> ) : T {
|
|
public function to<T:hxd.res.Resource>( c : Class<T> ) : T {
|
|
return loader.loadCache(entry.path, c);
|
|
return loader.loadCache(entry.path, c);
|
|
}
|
|
}
|