public BiomePresetScreen(BiomeGraphEditor biomeGraphEditor, bool loadStyle = true) { this.biomeGraphEditor = biomeGraphEditor; Texture2D plainTexture = Resources.Load <Texture2D>(""); Texture2D mountainTexture = Resources.Load <Texture2D>(""); Texture2D mesaTexture = Resources.Load <Texture2D>(""); Texture2D swamplandTexture = Resources.Load <Texture2D>(""); PresetCellList earthLikePresets = new PresetCellList() { { "Biome preset" }, { "Plains / Prairies", plainTexture, "Earth/Plain" }, { "Mountains", mountainTexture, "Earth/Mountain", false }, { "Mesas", mesaTexture, "Earth/Mesa", false }, { "Swamplands", swamplandTexture, "Earth/Swampland", false }, }; PresetCellList presets = new PresetCellList { { "Biome category" }, { "Earth like biomes", null, (string)null, true, earthLikePresets } }; LoadPresetList(presets); if (loadStyle) { LoadStyle(); } }
static void Init() { BiomeGraphEditor window = GetWindow <BiomeGraphEditor>("Biome Graph"); window.Show(); }