Jump to content

How can I get a reference to a custom shader with C#?


Recommended Posts

Hi!

How can I import/access a custom shader of mine with a plugin, so I can set create and set new materials at runtime?

I've tried creating asset bundles, but any tutorials I could find where quite convoluted or missing steps, and when I tried to load the shaders out of the asset bundles via these tutorials, they always ended up being null. Also, what I would typically use in unity, the LoadAssetBundle() function, seems to not exist in my class library.

Thanks, any advice would be appreciated! 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...