public static String getObjectName(AssetFile asset, ObjectPath path) {
Deserializer deser = new Deserializer(asset);
String name = null;
try {
UnityObject obj = deser.deserialize(path);
name = obj.getValue("m_Name");
} catch (OutOfMemoryError ex) {
// Deserializer choked on an array size and clogged the heap, try
// to clean up this mess
deser = null;
System.gc();