Struct SplineInstantiate.InstantiableItem
Describe the item prefab to instantiate and associate it with a probability
Inherited Members
Namespace: UnityEngine.Splines
Syntax
[Serializable]
public struct InstantiableItem
Fields
Prefab
The prefab to instantiate.
Declaration
[FormerlySerializedAs("prefab")]
public GameObject Prefab
Field Value
Type | Description |
---|---|
GameObject |
Probability
Probability for this prefab.
Declaration
[FormerlySerializedAs("probability")]
public float Probability
Field Value
Type | Description |
---|---|
Single |