LineMesh 使用问题
我在使用LineMesh画圆时 接口如何圆滑一些
var displayObject = mainPanel.GetChild("Line" + 1).asImage.displayObject;
LineMesh line3 = displayObject.graphics.GetMeshFactory<LineMesh>();
line3.lineWidth = 3;
line3.roundEdge = true;
GPathPoint[] gPathPoints = new GPathPoint[eegPowers.GetLength(0);
for (int j = 0; j < 8; j++)
{
gPathPoints[j] = new GPathPoint(new Vector2(eegPowers[j, 6].x, eegPowers[j, 6].y));
}
gPathPoints[8] = new GPathPoint(new Vector2(eegPowers[0, 6].x, eegPowers[0, 6].y));
line3.path.Create(gPathPoints);
displayObject.graphics.SetMeshDirty();
没有找到相关结果
已邀请:
1 个回复
谷主
赞同来自: