GenericAssemblyPart
A class in Root.Township, Alta.Crafting.
Marks a crafting part that can hang on a GenericAssemblyStation, with the local poses for hanging up or down.
- Listed in Crafting and making
- Inherits or implements
MonoBehaviour - Documented in Crafting
Constructors
| Member | What it is |
|---|---|
GenericAssemblyPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private GenericAssemblyStation.AssemblyPosition availablePositions | Backing field for AvailablePositions. |
private CraftingPart craftingPart | Backing field for CraftingPart. |
private SerializedTransform downHangingPosition | Local position and rotation when hanging down. |
private SerializedTransform upHangingPosition | Local position and rotation when hanging up. |
Properties
| Member | What it is |
|---|---|
GenericAssemblyStation.AssemblyPosition AvailablePositions { get; } | Flags for which station positions (up, down) this part can hang in. |
CraftingPart CraftingPart { get; } | The crafting part this component belongs to. |
Methods
| Member | What it is |
|---|---|
void SetPositionLocal(GenericAssemblyStation.AssemblyPosition position) | Moves the part to its up pose for Up, or its down pose otherwise. |
1 private and internal method
Used in
Members of other types that take, return or hold a GenericAssemblyPart: