Skip to main content

DockedDissolver

A class in Root.Township, Alta.Caves.

Client effect for a PickupDock: when an item is about to dock, a visual copy of it plays a dissolve and is released. Removes itself on a headless server.

Constructors​

MemberWhat it is
DockedDissolver()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private float dematerializeDurationLength of the dissolve in seconds.
private Texture dissolveTextureNoise texture used by the dissolve.
private Shader shaderDissolve shader applied to the visual double.
private PickupDock targetDockThe dock whose incoming items dissolve.

Methods​

2 private and internal methods
MemberWhat it is
private void DissolveItem(Interactor interactor, Pickup pickup, PickupDock dock)Spawns a visual double of the docking pickup and dematerializes it with the dissolve shader.
private void Start()Destroys this component on a headless server; otherwise hooks the dock's PreItemDocked event.