Skip to content

CardFanUI

CardFanUI is a modular Unity toolkit for card hands, deck data, drag and drop, and reusable card visual design.

It combines a lightweight fan layout with data-driven cards and layered visual templates. Use one reusable prefab to display many characters and card themes without duplicating prefabs.

Highlights

  • Animated fan-shaped hand layout
  • Hover, lift, scale, and stable overlay sorting
  • Camera-aware drag and configurable drop zones
  • ScriptableObject card definitions and decks
  • Runtime draw pile and opening-hand dealer
  • Layered card design templates
  • Reusable ModularCardBase prefab
  • Random card and design generators
  • Store-ready showcase scene builders
  • Unity 6 and Unity 2022.3 LTS support

Core workflow

CardDesignTemplate
        +
CardDefinition
        +
ModularCardBase.prefab
ModularCardView
CardDealerManager
UIHandLayout

Tip

The prefab controls positions, sizes, anchors, and layer order. Card and template assets control the content shown in those predefined slots.

Included examples

  • CardHandDemo.unity — drawing and arranging cards in a hand
  • ShowCase.unity — all modular art pieces
  • CardDesignShowcase.unity — mixed card and template gallery

Start with the Quick Start →