Skip to content

Instantly share code, notes, and snippets.

View canxerian's full-sized avatar

Mark Nguyen canxerian

  • Microsoft
View GitHub Profile
@dennisslimmers
dennisslimmers / ReactNativePaperMenuExample.js
Last active April 1, 2024 19:51
This is an example how to properly use the 'Menu' element from React Native Paper
import React, { useState } from 'react';
import Icon from 'react-native-vector-icons/FontAwesome5';
import {
View,
StyleSheet,
} from 'react-native';
import {
Title,
@canxerian
canxerian / how_to_icons_with_textmeshpro.txt
Last active April 16, 2024 14:29
How to use glyph icons with TextMeshPro
This guide shows how you can you use icon fonts in TextMeshPro
1. Copy the font file (.ttf) and copy it a location inside your Unity assets folder. I found my font file here: ‪C:\Windows\Fonts\SegoeIcons.ttf
2. In Unity, navigate to:
Window > TextMeshPro > Font Asset Creator
Select the font file you just copied to your project in "Source Font File"
3. Find the Unicode representation of your icon, these can be found on this website, for example: https://docs.microsoft.com/en-us/windows/apps/design/style/segoe-ui-symbol-font
Enter this Unicode to in to the text area labelled "Character Sequence (Hex).