Search Unity

accessing a LineRenderer's colorGradient results in a crash

Discussion in '5.5 Beta' started by chandler55, Sep 1, 2016.

  1. chandler55

    chandler55

    Joined:
    Jun 8, 2010
    Posts:
    16
    public LineRenderer lineRenderer;

    void Start()
    {
    Debug.Log(lineRenderer.colorGradient);​
    }

    this makes Unity crash for me. Also how are startColor and endColor supposed to be used? setting either property only sets the first key of the gradient

    thanks
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    1,316
    Hi,

    We've got a fix for this issue which will be in an upcoming Beta. (and for the start/endColor issue)
    The same crash happens with the curve property, in both the Line and Trail Renderers.

    Thanks,
     
unityunity