Skip to main content

PooledDockVisual

A class in Root.Township, Alta.Inventory.

Pooled visual for a dock: the bubble mesh, its filter and a 3D count label.

Constructors​

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

Fields​

4 private and internal fields
MemberWhat it is
private TextRenderer countLabel3DBacking field for CountLabel3D.
private Mesh defaultAndroidMeshDefault mesh for the dock on Android (renamed from defaultMesh).
private MeshRenderer dockBubbleBacking field for DockBubble.
private MeshFilter dockFilterBacking field for DockFilter.

Properties​

MemberWhat it is
TextRenderer CountLabel3D { get; }3D text showing the docked count.
MeshRenderer DockBubble { get; }Renderer for the dock bubble.
MeshFilter DockFilter { get; }Mesh filter for the dock shape.

Methods​

MemberWhat it is
override void Release()Clears the count label and returns the visual to its pool.

Used in​

Members of other types that take, return or hold a PooledDockVisual: