A class in Root.Township, Alta.Customization.
Base for the grabbable items in the character customization area (cosmetics, body types, eyes, equipment). Client side; spawned from a template with Spawn.
Constructors
| Member | What it is |
|---|
CustomizationPickup() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
Methods
| Member | What it is |
|---|
void DestroyOnRelease() | Makes the pickup destroy itself shortly after it is let go, unless it is grabbed again. |
virtual void HandlePlacementResult(bool wasAdded) | Plays the added or disappear effect (not on headless) and snaps the hover pickup back. |
virtual CustomizationPickup Spawn(ICustomizationDefinition definition, CustomizationArguments[] arguments, Transform parent) | Instantiates a copy of this pickup under a parent and gives it a definition and arguments. |
protected virtual void DestroyPickup() | Destroys the pickup's game object. Override to pool or animate instead. |
2 private and internal methods
| Member | What it is |
|---|
private void DelayDestroy() | Destroys the pickup if nobody picked it up again since release. |
private void DestroyOnInteractEnd(Interactable arg1, Interactor arg2) | On release, waits a frame then calls DelayDestroy. |
Used in
Members of other types that take, return or hold a CustomizationPickup:
BodyTypePickup.Spawn, CosmeticPickup.Spawn, CosmeticScrollElement.pickups, EditableSlot.hovering, EquipmentPickup.Spawn, EyePickup.Spawn, ICustomizationDefinition.SpawnPickup, PlayerCosmeticDefinition.pickup, PlayerCosmeticDefinition.SpawnPickup, PlayerEquipmentDefinition.pickup, PlayerEquipmentDefinition.SpawnPickup, SkinColorPickup.Spawn.