I'd like to add a custom material to a line that I'm drawing in Unity (using Vectrosity). I'm using Unity's built-in "Unlit/Texture" shader. When I drag a texture from my Resources directory into the "Texture" slot in my shader, everything looks good:
But when I click play, the texture disappears:
and my line doesn't show up in my game. However, if I drag the texture to the shader's texture slot after I click play, the texture seems to "stick" and my line renders as expected:
But once I stop and start the game, the texture again disappears.
Why is Unity kicking out my texture when my game starts? Is there something wrong with my texture? I don't see any warnings or errors in the console. I've tried with numerous different textures, and they all do the same thing.
I'm using Unity 5.6.1f1.