- Home /
Question by
freshry · Apr 10, 2018 at 04:56 PM ·
c#scripting problem
LineRenderer.setWidth method is obsolete. What is the replacement?
I am using c# to manipulate lines in the using the LineRenderer component. The width of the lines need to be modified by the script. LineRenderer.SetWidth works but throws an error about being obsolete. I see that LineRender.startWidth and .endWidth exist but I can't seem to modify them.Any ideas?
Comment
Best Answer
Answer by freshry · Apr 10, 2018 at 05:02 PM
Oh hey, using lr.width Multiplier seem to accept a float just fine. excellent.