PlayerUnlock.OrbProperties
A class in Root.Township, the global namespace.
One orb of a PlayerUnlock: the prefab, its weight and where it sits on the player's body. Read by SpiritState to place belt orbs.
- Listed in Global namespace: P
- Nested in
PlayerUnlock
Constructors
| Member | What it is |
|---|---|
OrbProperties() | Creates a PlayerUnlock.OrbProperties with default values. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private BoneIdentifier bone | Backing field for Bone. |
private Vector3 position | Backing field for Position. |
private GameObject prefab | Backing field for Prefab. |
private float scale | Backing field for Scale. |
private float weight | Backing field for Weight. |
Properties
| Member | What it is |
|---|---|
BoneIdentifier Bone { get; } | Body bone the orb attaches to. |
Vector3 Position { get; } | Offset from that bone. |
GameObject Prefab { get; } | Prefab spawned for the orb. |
float Scale { get; } | Scale of the orb (default 0.5). |
float Weight { get; } | Weight this orb adds; probably fed into the player's overridden weight while in spirit form. |
Used in
Members of other types that take, return or hold a OrbProperties: