public void SetTarget(MB3_MeshBakerRoot targ) { if (addObjectsTab == null) { addObjectsTab = new MB3_MeshBakerEditorWindowAddObjectsTab(); } addObjectsTab.target = targ; }
void OnEnable() { if (addObjectsTab == null) { addObjectsTab = new MB3_MeshBakerEditorWindowAddObjectsTab(); } if (analyseSceneTab == null) { analyseSceneTab = new MB3_MeshBakerEditorWindowAnalyseSceneTab(); } addObjectsTab.OnEnable(); }