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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Prefab loading of Assetbundle on PC is not displayed

Discussion in 'Asset Bundles' started by arabshia, Apr 26, 2022.

  1. arabshia


    Apr 26, 2022
    The Assetbundle loaded on the PC.

    The prefab loaded shader is packaged separately and the Assetbundle in which the shader is loaded at project startup does not display properly.

    AssetBundle shaderAB = AssetBundle.LoadFromFile("shaderABPath");


    Shader must be set when PreFab is loaded to display properly.

    for (int i = 0; i < mats.Length; i++)


    mats.shader = Shader.Find(;


    Want to consult next everybody how to solve this problem.
  2. YibinZhang


    Jan 21, 2022
    Can you make a Template and upload? I guess platform of the asset bundle don't match platform PC.