Search Unity

Check box to force include in build (for shaders)

Discussion in 'Wish List' started by StarManta, Oct 20, 2008.

  1. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Shader.Find is a great, great tool.... marred only slightly because it's completely useless. Shaders that are not directly linked anywhere are not included, causing Shader.Find to work great in the editor and not at all in the build - unless the shader is referenced somewhere, which eliminates the point entirely. So I'd like a checkbox in the settings box for shaders to force their inclusion in builds.
     
  2. Sylvan

    Sylvan

    Joined:
    Sep 30, 2010
    Posts:
    5
    Isn't there any way to force inclusion? I couldn't find it...

    If you use UsePass command and create an asset package, you should include the base shader in main your project, otherwise it won't work. It couldn't find it...
     
  3. Ntero

    Ntero

    Joined:
    Apr 29, 2010
    Posts:
    1,436
    If you place it in a Resources Folder (Assets/Resources) it'll always be included in the build.
     
  4. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    Duhhh important stuff... neverending learning... thanks! :)