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

Shader - Purple Color From Windows Bundle to OSX Editor

Discussion in 'Asset Bundles' started by fwalker, May 7, 2021.

  1. fwalker

    fwalker

    Joined:
    Feb 5, 2013
    Posts:
    255
    Hello,
    I would like to load a bundle created from a windows project into a project in Unity editor on OSX. It almost works. But the materials are initially pink... UNTILL I reselect that shader from the shader dropdown (which already points to the correct one) in this case Sprite/Default from ANY ONE of the assets using this shader. Then all the assets display properly.
    Is there any way to do this (reselect or reinitialize of shaders) from script?

    Thanks