Method RequestData
RequestData(Bounds, int, int, BiomeDataMask, CancellationSignal)
Requests biome output data for the specified world bounds and resolutions.
BiomeDataRequest RequestData(Bounds worldBounds, int heightMapResolution, int textureResolution, BiomeDataMask consumableDataMask = (BiomeDataMask)-1, CancellationSignal cancellationSignal = null)
Parameters
worldBoundsBoundsWorld-space bounds to generate data for.
heightMapResolutionintRequested height-related output resolution.
textureResolutionintRequested texture-related output resolution.
consumableDataMaskBiomeDataMaskChannels the caller is able to consume, intersected with the biome's own data mask so an output is generated only when the caller can use it and the biome produces it. Defaults to all channels, so a caller that consumes everything can ignore it.
cancellationSignalCancellationSignalOptional read-only cancellation state owned by the caller. Implementations should pass it to cancellable child operations, stop at safe checkpoints, release partial output, and complete the returned request before exiting. A null signal means the caller did not request cooperative cancellation.
Returns
- BiomeDataRequest
A request whose data payload contains the requested outputs on success. The request must reach completion after either successful generation or cancellation cleanup so its caller can safely resume.