I’ve Instantiate a Game Object and add a TrailRenderer Component into it. How to assign a material into the Trail Renderer in scripting??? The Material is called “matLine” in Materials Project Folder.
I’ve googled it but no luck. This is one of the basic things in Unity, yet I can’t find the solution.
Your help is deeply appreciated.