Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resource Folder and AssetBundles

Discussion in 'Editor & General Support' started by gagagu, May 20, 2020.

  1. gagagu

    gagagu

    Joined:
    Aug 28, 2015
    Posts:
    11
    Hi,
    i have an issue with my project and i want to ask you for help. I've some prefabs saved into the resource folder. All Textures, Materials and other stuff are not in the resource folder because they are part of an AssetBundle.

    When i will load a prefab with

    resource = Resources.Load(myPrefabName);

    than the prefab is shown in my scene with all Textures and Material, but the Asset is not loaded before. Why the not loaded Textures are shown? The right behavior would be that the prefab will shown inivisible because of the missing assets.

    Do i something wrong?