使用setjessie
中的jsxgraph
处理角度标签。是否有任何setjessiecode
属性可以用来处理这种情况。
答案 0 :(得分:0)
不确定,如果我理解正确的问题。特别是,我不知道方法private string getPath()
{
#if UNITY_EDITOR
return Application.streamingAssetsPath;
#elif UNITY_ANDROID
return Application.persistentDataPath;
#elif UNITY_STANDALONE_WIN
return Application.streamingAssetsPath;
#else
return "";
#endif
}
private string[] loadExternal_Question(int qIndex)
{
Debug.Log("External File: " + getPath() + "/Quiz/Q" + qIndex + ".txt");
string[] q_Data = File.ReadAllLines(getPath() + "/Quiz/Q" + qIndex + ".txt");
QuestionTitle_LB.text = q_Data[0].Replace("//n", "\n");
Answer_1.text = q_Data[1].Replace("//n", "\n");
Answer_2.text = q_Data[2].Replace("//n", "\n");
Answer_3.text = q_Data[3].Replace("//n", "\n");
Answer_4.text = q_Data[4].Replace("//n", "\n");
CurrentQ = int.Parse(q_Data[5]);
FeedBack_LB.text = q_Data[6].Replace("//n", "\n");
return q_Data;
}
。但这是一个示例,如何显示角度值而不是其名称:
private void Label_Click(object sender, EventArgs e)
{
var nameLabel = ( sender as Label )?.Name ?? "Error";
// ...
}
private void Label_Enter(object sender, EventArgs e)
{
( sender as Label ).Cursor = Cursors.Hand;
}
private void Label_Leave(object sender, EventArgs e)
{
( sender as Label ).Cursor = Cursors.Default;
}
在https://jsfiddle.net/yj7mhvk1/上查看它的运行情况