Hello,
I have a line a code that adds a material to a LineRenderer
void Start () {
_targetLine.material = new Material (Shader.Find("Particles/Additive"));
_targetLine.enabled = false;
}
This works when I test it using a play button, but when I build and run on my device, the material isn’t added. The strangest thing of all is that a simple game I made when I first started learning Unity doesn’t have this problem with the same lines of code.
Is this a known issue with a solution?
Thanks!
**EDIT: **
this seems related, but I have no idea what they are saying…