Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

LoadMainAssetAtPath vs LoadAssetAtPath

Discussion in 'Scripting' started by alexzzzz, May 17, 2013.

  1. alexzzzz

    alexzzzz

    Joined:
    Nov 20, 2010
    Posts:
    1,447
    ivaylo5ev and rakkarage like this.
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    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.
     
    mingchaoyan, TMPxyz and metal523 like this.