Jump to content

skillcheese

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Neutral

Profile Information

  • About me
    Curious George
  1. I'm trying to use a ComputeShader for some calculations on a mod I'm working on, but I can't seem to find any way to add the file to any resource folder anywhere or to load it into the game at all. Resources.Load won't find the file. Does anyone know how to utilize compute shaders in your code? It's easy to get it to work in unity cause you just make the public ComputeShader and then assign it in the inspector, but I cannot figure out how to do so at runtime. Thanks for your help! trying ComputeShader shader = Resources.Load<ComputeShader>("ComputeShaderName"); and UnityEngine.Object[] objects = Resources.LoadAll<ComputeShader>(""); returns an empty array I've put the computeshader file in all the folders I can think of. I use this same settup in Simple rockets 2, but it just doesn't work in ksp. Thanks!
×
×
  • Create New...