public void OnEnable() { VegetationStudioInstance = VegetationStudioProUtils.FindVegetationStudioInstance(); extension = (BatchFunctions)target; // biomes biomeType = FindProperty(x => x.biomeType); }
public void OnEnable() { VegetationStudioInstance = VegetationStudioProUtils.FindVegetationStudioInstance(); extension = (BatchFunctions)target; // biomes modifyAll = FindProperty(x => x.modifyAll); biomeType = FindProperty(x => x.biomeType); // get only the added biome types, we don't want all of the enum in the popup addedBiomes = new PopupData <BiomeType>(VegetationStudioProUtils.GetAddedBiomeTypes().ToArray()); }
public void OnEnable() { this.editor = this; VegetationStudioInstance = VegetationStudioProUtils.FindVegetationStudioInstance(); extension = (BiomeMaskSpawnerExtension)target; #region settings modules rectangularPartitionModule = new RectangularPartitionModule(this); voronoiModule = new VoronoiModule(this); hexagonModule = new HexagonModule(this); lineModule = new LineModule(this); lakeModule = new LakeModule(this); shapeModule = new ShapeModule(this); biomeModule = new BiomeModule(this); processingModule = new ProcessingModule(this); riverModule = new RiverModule(this); roadModule = new RoadModule(this); #endregion settings modules #region action modules maskCreationActionModule = new MaskCreationActionModule(this); roadCreationActionModule = new RoadCreationActionModule(this); vegetationStudioProActionModule = new VegetationStudioProActionModule(this); #endregion action modules #region module OnEnable biomeModule.OnEnable(); lakeModule.OnEnable(); shapeModule.OnEnable(); processingModule.OnEnable(); rectangularPartitionModule.OnEnable(); voronoiModule.OnEnable(); hexagonModule.OnEnable(); lineModule.OnEnable(); riverModule.OnEnable(); roadModule.OnEnable(); #endregion module OnEnable #region Consistency Check performInitialConsistencyCheck = true; #endregion Consistency Check }