You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to add Biomes to the generator, i tried to make new BiomeData scriptable Object and just copy every single variable function etc from other Data functions into that, everything was working but i has issue that i was using just one scriptable Object that i put into Mapgenerator and then use values from that, but then i just tried to create something that will generate Random Biome to each chunk and then use information from that Biome Data of each chunk, i tried to create an instance for the Chunk script and then just replace everything like noiseData.NoiseScale etc to Chunk.instance.biomeData.NoiseScale, everything as working until OnValidate function in Mapgenerator where the script check if the data is not null and then unsubscribe from OnValuesUpdated and then again subscribe to OnValuesUpdated, i just repalced every Data.OnValuesUpdated to Chunk.instance.biomeData.OnValuesUpdated and even in the if statements, but then the first if statement return error "Object reference not set to an instance of an object"
The text was updated successfully, but these errors were encountered:
@OfficialSammyTheWolf Did you manage to get biomes working with this project, if so Id be very interested to see how you did it as I am looking to learn how that could be done.
I was trying to add Biomes to the generator, i tried to make new BiomeData scriptable Object and just copy every single variable function etc from other Data functions into that, everything was working but i has issue that i was using just one scriptable Object that i put into Mapgenerator and then use values from that, but then i just tried to create something that will generate Random Biome to each chunk and then use information from that Biome Data of each chunk, i tried to create an instance for the Chunk script and then just replace everything like noiseData.NoiseScale etc to Chunk.instance.biomeData.NoiseScale, everything as working until OnValidate function in Mapgenerator where the script check if the data is not null and then unsubscribe from OnValuesUpdated and then again subscribe to OnValuesUpdated, i just repalced every Data.OnValuesUpdated to Chunk.instance.biomeData.OnValuesUpdated and even in the if statements, but then the first if statement return error "Object reference not set to an instance of an object"
The text was updated successfully, but these errors were encountered: