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

Load shader compiled shader from file

Discussion in 'Shaders' started by Future_Modder, Oct 30, 2020.

  1. Future_Modder

    Future_Modder

    Joined:
    Jan 27, 2020
    Posts:
    3
    Hey I mod games and since I can’t access the games Unity project I was wondering if there was a way to load pre compiled shader code. When you click on a shader in the editor on the right there’s a button that says compile and show code, if I shove the output into a file is there a way I can load this? I want the user to be able to use their own shaders for my mod without having to make an asset bundle just clicking the compile button in the editor.
     
  2. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    327