Skip to main content

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.

Constructors​

MemberWhat it is
OrbProperties()Creates a PlayerUnlock.OrbProperties with default values.

Fields​

5 private and internal fields
MemberWhat it is
private BoneIdentifier boneBacking field for Bone.
private Vector3 positionBacking field for Position.
private GameObject prefabBacking field for Prefab.
private float scaleBacking field for Scale.
private float weightBacking field for Weight.

Properties​

MemberWhat 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: