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

Asset bundle missing a component only in build.

Discussion in 'Asset Bundles' started by ryancampfire, May 16, 2019.

  1. ryancampfire

    ryancampfire

    Joined:
    Jan 4, 2017
    Posts:
    31
    There is an asset bundle of something with a particular component attached.

    At a point where I call .GetComponent<ThatComponent> () the result is null. But only when running the game as a build. If I run it in editor, the result works.

    I also have other asset bundles that have the same component and they work correctly in the build. What sorts of things should I look for to explain what is different about this one?