Skip to content

Troubleshooting

Every card uses the same design

Check ModularCardBase → ModularCardView → Design Override.

If it contains a template, it overrides every Card Definition. Clear it and save the prefab.

Sprite selections do not appear

  1. Confirm the Card Definition has a Design Template.
  2. Confirm the prefab contains ModularCardView.
  3. Press Auto Assign From Prefab.
  4. Confirm child object names match the expected hierarchy.
  5. Press Refresh Preview.

Cards are not drawn

Check the CardDealerManager:

  • Deck is assigned
  • Card Prefab is assigned
  • Card Holder is assigned
  • Deck contains valid Card Definitions

Cards do not fan out

Confirm UIHandLayout is on the direct parent of the card instances.

Hover switches endlessly

Keep Use Overlay Sorting and Create Overlay Canvas If Missing enabled on UIHandCardHover.

Other cards hover during drag

Use the current UIDragCard and UIHandCardHover versions. Other cards detect UIDragCard.ActiveDrag and suppress hover automatically.

TMP assembly reference errors

Confirm both assembly definitions reference Unity.TextMeshPro:

  • Runtime/CardFanUI.asmdef
  • Editor/CardFanUI.Editor.asmdef

Camera or World Space dragging is offset

Assign the correct Canvas camera and use the current UIDragCard, which converts pointer coordinates through RectTransformUtility.