What’s the difference between AssetDatabase.LoadMainAssetAtPath and AssetDatabase.LoadAssetAtPath?
What is the “main asset object” and how does it differ from the “first asset object”?
What’s the difference between AssetDatabase.LoadMainAssetAtPath and AssetDatabase.LoadAssetAtPath?
What is the “main asset object” and how does it differ from the “first asset object”?
Well, the first asset is the first one in the list. The “main” asset is the game object at the root of a hierarchy, with no parent, or, if no game object exists, it’s the first prefab, or font, or dynamic font, or material, or movie texture or a few other random types.