Show / Hide Table of Contents

Class TesseraGenerateOptions

Additional settings to customize the generation at runtime.

Inheritance
Object
TesseraGenerateOptions
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class TesseraGenerateOptions

Fields

cancellationToken

Allows interuption of the calculations

Declaration
public CancellationToken cancellationToken
Field Value
Type Description
CancellationToken

onComplete

Called when the generation is complete. By default, checks for success then invokes onCreate on each instance.

Declaration
public Action<TesseraCompletion> onComplete
Field Value
Type Description
Action<TesseraCompletion>

onCreate

Called for each newly generated tile. By default, Instantiate(TesseraTileInstance) is used.

Declaration
public Action<TesseraTileInstance> onCreate
Field Value
Type Description
Action<TesseraTileInstance>

progress

Called with a string describing the current phase of the calculations, and the progress from 0 to 1. Progress can move backwards for retries or backtracing. Note progress can be called from threads other than the main thread.

Declaration
public Action<string, float> progress
Field Value
Type Description
Action<String, Single>

Properties

multithreaded

If set, then generation is offloaded to another thread stopping Unity from freezing. Requires you to use StartGenerate in a coroutine.

Declaration
public bool multithreaded { get; set; }
Property Value
Type Description
Boolean

seed

Fixes the seed for random number generator. If the value is zero, the seed is taken from Unity.Random

Declaration
public int seed { get; set; }
Property Value
Type Description
Int32
Back to top Generated by DocFX