public void OnSceneCreate() { if (VCEditor.DocumentOpen()) { VCESceneSetting setting = VCEditor.s_Scene.m_Setting; // Tab if (!m_ISOTab.isChecked) { m_PartTab.isChecked = true; } if (!VCEditor.s_Ready) { OnPartTab(false); OnMaterialTab(false); OnPaintTab(false); OnDecalTab(false); OnEffectTab(false); OnISOTab(false); m_PartTab.isChecked = true; } VCEditor.Instance.m_UI.m_IsoTip.Hide(); firstvalid = true; UpdateErrorLabel(); // Title label VCESceneSetting parentsetting = VCConfig.s_EditorScenes.Find(iter => iter.m_Id == setting.m_ParentId); if (parentsetting.m_Id == 1) { m_TitleLabel.text = setting.m_Name.ToUpper().ToLocalizationString(); } else { m_TitleLabel.text = parentsetting.m_Name.ToUpper().ToLocalizationString() + " - " + setting.m_Name.ToUpper().ToLocalizationString(); } if (VCEditor.s_Scene.m_Setting.m_Category == EVCCategory.cgObject) { m_TitleLabel.text = "OBJECT".ToLocalizationString() + " - " + m_TitleLabel.text.ToLocalizationString(); } m_SceneSizeLabel.text = " " + setting.EditorWorldSize.x.ToString("0.##") + "m x " + setting.EditorWorldSize.z.ToString("0.##") + "m x " + setting.EditorWorldSize.y.ToString("0.##") + "m"; m_SceneSizeLabel2.text = VCUtils.LengthToString(setting.m_MajorInterval * setting.m_VoxelSize) + "\r\n" + VCUtils.LengthToString(setting.m_MinorInterval * setting.m_VoxelSize) + "\r\n" + VCUtils.LengthToString(setting.m_VoxelSize); // Part List m_PartList.InitTypeList(); m_PartList.RefreshPartList(m_PartTypePopupList.selection); m_PartList.RepositionList(); // Material List m_MaterialList.InitMatterList(); m_MaterialList.RefreshMaterialList(m_MatterPopupList.selection); m_MaterialList.RepositionList(); // Decal List m_DecalList.RefreshDecalList(); m_DecalList.RepositionList(); // Iso List m_IsoList.RefreshIsoList(); m_IsoList.RepositionList(); // Stat m_StatPanel.SetIsoIcon(); m_StatPanel.OnCreationInfoRefresh(); } }