Create Muk Text #
To create MukText, create and select MukUICanvas, right-click in the Hierarchy > Muk > Text. You will see a new object(MukText) created in the selected canvas or the first canvas in the Hierarchy (if no canvas is selected). If there’s no canvas in the Hierarchy, Muk will create a MukUICanvas for you and place the MukText in the newly created MukUICanvas.
There is a Text (TMP) in the MukText component, so you can set the text or other value in the child object, MukText will override some of the value, so you will need to tick the option to override the value if you need to set the value by yourself, for details, please see the properties table below.
Muk Text - Properties #
Property | Desciption | Value |
---|---|---|
Platform Type | Which UI Platform should Muk Components display. | Device - Base on device. iOS UI for iOS device, Material design for others. iOS - iOS design. Material - Material design. |
Material Version | Which Material design version to use. | Material_3 - Use the Material 3 design. Material_2 - Use the Material 2 design. |
Dark Mode | Use Dark mode or light mode. You can set color for each mode in theme settings. | Dark - Dark Mode. Light - Light Mode. |
Text Color Property | The color of the text? | You can choose iOS / Material Color from the drop down list, this list is from MukAppThemeData. If there's no color you like, you can tick the Override color property, then choose the color you like. If ticked, it will show two options - iOS & Material, and each option will have two options inside(Light Mode color / Dark Mode Color). |
Override Font Size | You can set the font size in the TMP_Text child | If this is set to false, Muk Text will override the value. |
Override Character Spacing | You can set the character spacing in the TMP_Text child | If this is set to false, Muk Text will override the value. |
Override Line Spacing | You can set the live spacing in the TMP_Text child | If this is set to false, Muk Text will override the value. |
Override Text Color | You can set the Text color in the TMP_Text child | If this is set to false, Muk Text will override the value. |
Overrider iOS Font | Should override iOS font? | If this is set to false, Muk Text will override the value. |
Override Material Font | Should overrider Material font? | If this is set to false, Muk Text will override the value. |