How to edit the renderer of Stylus line

Hi,

The stylus is working well, and I can move object. But for a reason I can’t find, the virtual line is pink (as if material was missing), and I can’t figure out how to change it.
The problem only appear when building an .exe. When I run in Unity the virtual line works as it should do.

Thanks

The issue you’re encountering has to do with the StylusObjectManipulationSample’s use of “Shader.Find()”. There are simple ways to solve the issue, but ultimately this method of drawing the stylus is intended to be replaced by developers to suit the functional and aesthetic needs of the app being written.

https://docs.unity3d.com/ScriptReference/Shader.Find.html

you can create a Material and put it into Resources .