Table of Contents

Property prefabVariants

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

prefabVariants

Gets or sets additional prefab variants that may be selected when spawning instances.

public GameObject[] prefabVariants { get; set; }

Property Value

GameObject[]

Remarks

The getter returns a copy of the stored array and returns an empty array when variant support is unavailable in the current integration. Null assignments are converted to an empty array. During population, non-null variants are appended to the candidate prefab list and one candidate is chosen randomly for each valid sample.