From 33b5b4041d2bdee0356be2138275a9396ff2e79c Mon Sep 17 00:00:00 2001 From: Ken Schaefer Date: Sat, 11 Mar 2023 09:45:07 -0600 Subject: [PATCH] Some notes on Unity UI in the card battler --- Studying/Card Battler Notes.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Studying/Card Battler Notes.md diff --git a/Studying/Card Battler Notes.md b/Studying/Card Battler Notes.md new file mode 100644 index 0000000..20292ca --- /dev/null +++ b/Studying/Card Battler Notes.md @@ -0,0 +1,9 @@ + +## Font +Used a standard font to create TextMeshPro assets. This allows for different font "materials" across a canvas. For example, if you want to use outlines on some text elements but not others, then you need two different assets. One with outlines, the other without. + +Right-click the font in the Project window and then Create->TextMeshPro->Font Asset + +## Image Masking +Add a UI Image and then add a Mask component to the image. Size the box accordingly, and then make other images the children of the Mask. +