//restores texture set data and either loads default texture set or saved texture set (if any) private void initialize() { loadConfigData(); TextureSet currentSet = Array.Find(textureSets, m => m.setName == currentTextureSet); currentSet.enableFromMeshes(part); }
//enables a specific texture set, by name public void enableTextureSet(String name) { TextureSet ts = Array.Find(textureSets, m => m.setName == name); if (ts != null) { ts.enableFromMeshes(part); currentTextureSet = name; } }