Merge pull request #475 from bluefallsky/enhance/gradient2-fix-radial-triangle
Enhance/gradient2 fix radial trianglepull/480/head^2
commit
3f3e481283
|
@ -367,5 +367,14 @@ namespace UnityEngine.UI.Extensions
|
|||
eventData.useDragThreshold = false;
|
||||
}
|
||||
|
||||
public void SetXWithoutNotify(float x)
|
||||
{
|
||||
SetX(x, false);
|
||||
}
|
||||
|
||||
public void SetYWithoutNotify(float y)
|
||||
{
|
||||
SetY(y, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,7 +231,7 @@ namespace UnityEngine.UI.Extensions
|
|||
|
||||
helper.AddVert(centralVertex);
|
||||
|
||||
for (int i = 1; i < steps; i++) helper.AddTriangle(i - 1, i, steps);
|
||||
for (int i = 1; i < steps; i++) helper.AddTriangle(i, i-1, steps);
|
||||
helper.AddTriangle(0, steps - 1, steps);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue