public override void SetExtraInfo(ExtraInfoArrayReadPackage v) { base.SetExtraInfo(v); if (v.FindDelimiterAndSpoolToIt(DelimiterType.BaseTier)) { Position = new Vector3(v.GetNextFloat(), v.GetNextFloat(), v.GetNextFloat()); Angle = new Vector3(v.GetNextFloat(), v.GetNextFloat(), v.GetNextFloat()); Scale = new Vector3(v.GetNextFloat(), v.GetNextFloat(), v.GetNextFloat()); SelectIDMemory[0] = v.GetNextInt(); SelectIDMemory[1] = v.GetNextInt(); SelectMeshListType = (MeshListType)v.GetNextInt(); SelectMaterialListType = (MaterialListType)v.GetNextInt(); VertexColorIsOn = v.GetNextBool(); BlockIsOn = v.GetNextBool(); MeshIsOn = v.GetNextBool(); } }
private void Gui_MeshDataList() { Rect Panel = new Rect(0f, 0f, 250f, 800f); GUILayout.BeginArea(Panel, SelectMeshListType.ToString(), GUI.skin.window); if (GUILayout.Button("Change Mesh List", GUILayout.Height(40))) { ++SelectMeshListType; if ((int)SelectMeshListType >= Enum.GetNames(typeof(MeshListType)).Count()) { SelectMeshListType = 0; } UpdateMesh(); SyncroniseDataUpLoad(); } if (Gui_1(MeshNameList, MainMeshList, ref SelectMesh, ref SearchText1, ref Scroll1)) { UpdateMesh(); SyncroniseDataUpLoad(); } }