Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Shouldn't shaders be included in Visual Studio 2015 projects?

Discussion in '5.2 Beta' started by movra, Jul 27, 2015.

  1. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
    Since Visual Studio 2015 has support for shaders, wouldn't it make sense to include them in the project files?

    I can toggle Show All Files and filter .shader and .cginc and open/include the shaders. When the project files are refreshed I have to repeat that step.
     
    vvander likes this.
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,725
    I have no problem editing shaders by double clicking them inside the unity editor which opens them in VS automatically. What specifically are you having a problem with?
     
  3. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
    I want to be able to use the quick search function (ctrl+f) in Visual Studio to find a keyword in several shaders. The quick search only works for files included in projects.
     
    prestonmatterport and vvander like this.
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,650
    In case Unity staff is looking at this post, I reported this issue as: (Case 715442) VSTU: Solution does not contain shader files
     
    movra likes this.
  5. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
    Oh! Go to Editor Settings, there's a new section "C# Project Generation" with a field "Additional extensions to include", There you can add "cginc;shader" and they will be included!

    Guess you can close this topic and issue 715442. :oops:

    Although maybe they could be included by default.
     
    Todd-Wasson likes this.
  6. pvloon

    pvloon

    Joined:
    Oct 5, 2011
    Posts:
    591
    And don't forget .compute files :)
     
  7. pvloon

    pvloon

    Joined:
    Oct 5, 2011
    Posts:
    591
    They forgot .compute files :(

    Adding it in the additional extensions doesn't seem to be respected either
     
  8. pvloon

    pvloon

    Joined:
    Oct 5, 2011
    Posts:
    591
    Any updates on this? It's really frustating to work on anything compute based right now :(