public void Test() { /* * unsafe { * m_Demo = new Demo(); * //m_Demo.TestArr = new sbyte[1]; * m_Demo.TestArr[0] = 37; * m_Data = m_Demo.ToByteArray(); * * m_DemoTest = m_Demo.ToByteArray().ToStructure<Demo>(); * } */ var test = new Demo3(); test.TestArr = new long[5]; for (int i = 0; i < test.TestArr.Length; i++) { test.TestArr[i] = 37 + i * 5 + i * i * 2; } test.m_Vals = new ValT[3]; for (int i = 0; i < test.m_Vals.Length; i++) { test.m_Vals[i] = new ValT(); } test.m_F = Core.MathLib.UCL_Random.Instance.NextFloat(2.0f); Dictionary <string, int> dic = new Dictionary <string, int>(); dic.Add("hii", 3); dic.Add("No QAQ", 142); Debug.LogWarning(dic.UCL_ToString()); ET e = ET.b; Debug.LogWarning(e.UCL_ToString()); int a = 17; Debug.LogWarning(a.UCL_ToString()); Debug.LogWarning(test.UCL_ToString()); Debug.LogWarning(test.GetMember("m_F").UCL_ToString()); Debug.LogWarning(test.GetMember("m_Demo").UCL_ToString()); }