API reference
API reference
Select your platform
No SDKs available
No versions available

Candidate Struct

A struct that contains all the information needed to spawn a decoration.

Fields

anchorCompDists : Vector3
The raycast hit.
Signature
Vector3 anchorCompDists
anchorDist : float
The distance to the anchor with the given component.
Signature
float anchorDist
decorationPrefab : GameObject
Signature
GameObject decorationPrefab
hit : RaycastHit
The position of the object in local space normalized.
Signature
RaycastHit hit
localPos : Vector2
The prefab to spawn.
Signature
Vector2 localPos
localPosNormalized : Vector2
The position of the object in local space.
Signature
Vector2 localPosNormalized
slope : float
The distance to the anchor.
Signature
float slope