- Home /
Question by
mdagreda · Feb 22, 2013 at 11:30 PM ·
colorchangefillragespline
How do I change the fill color of a rage spline path?
I am trying to change the color of a path with a rage spline component from a script while the game is running. I tried connecting the path as a gameobject in another script and then geting the rage spline component but then I could not access the fill variable from the rage spline because fill is not a member of component. So I know that code is going the wrong direction but I don't know where to go from here. Any ideas?
Comment
Answer by Bulgroz · Apr 13, 2013 at 10:58 PM
rageSpline.SetFillColor1(thecoloryouchoose);
rageSpline.RefreshMesh(true, true, false);
should work
Your answer
![](https://koobas.hobune.stream/wayback/20220613093220im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
3D Text - How to change colour - Doesn't seem to work 2 Answers
How to change color as flashing or blink? 0 Answers
Horizontal Slider Normal-Background Change Color Independently 3 Answers
change color object 2 Answers
JS changing gui box color 1 Answer