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

initialConstraints

If sets, overrides TesseraGenerator.initialConstraints and TesseraGenerator.searchInitialConstraints.

Declaration
public List<ITesseraInitialConstraint> initialConstraints
Field Value
Type Description
List<ITesseraInitialConstraint>

multithreaded

If set, then generation is offloaded to another thread stopping Unity from freezing. Requires you to use StartGenerate in a coroutine. Multithreaded is ignored in the WebGL player, as it doesn't support threads.

Declaration
public bool multithreaded
Field Value
Type Description
Boolean

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, Transform) 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>

seed

Fixes the seed for random number generator. By defult, random numbers from from Unity.Random.

Declaration
public int? seed
Field Value
Type Description
Nullable<Int32>
Back to top Generated by DocFX