Script references
All scripts are in namespace MText. So, don’t forget to add using MText
on top of the script when referencing scripts on this asset.
Modular3DText.cs
Modifiable attributes via script: material, characterSpacingInput for character spacing, lineSpacingInput for line spacing, height, length
MText_Font.cs
MText_UI_List.cs
Mtext_UI_InputField
MText_UI_Button
Some modifiable properties like normalBackgroundMaterial, pressedBackgroundMaterial, selectedBackgroundMaterial etc.
MText_UI_Toggle
Toggle is controlled by button. Set button‘s interactable property to control toggle
MText_UI_Slider
HorizontalSelector
Note: Nothing in the MText.FontCreation
namespace is meant to be used by anything other than what it does already. The code is quiet messy and hard to provide support for since I am not very knowledgeable about mesh genaration. So, wrapping it in a DLL. Will slowly organize stuff and move some pieces of them out of DLL one by one later. if I have the time. (Low priority).
Update to 1.4.2: moved most code out of DLL. (mesh+obj exporter, different helper scripts) Just triangulation script is in DLL.
API Change-list
[This is not asset version change list. It is just API change.] Version 2.0.0 Most public text variables are properties now, will auto update the text if changed.
Version 1.6.9 1. Input String has been renamed to input field 2. Toggle's "active" variable has been renamed to "isOn" to match with Unity's UI. 3. Toggle's active & inactive item is game-object now, instead of a list.
Version 1.6.5
UpdateText()
now updates the text no matter what. Use UpdateTextWithCheck()
if you want to update if change is made to the tracked properties.
Version 1.5.03
Modular 3D Text: NewEffect(the list to add module to, new module); method ClearAllEffects();
StatusToolTip script replaces DamageText script to be used in a real scenerio instead of just as a sample
Version 1.4.02
Few more scripts are out of DLL.
In-editor font creator can export font as mesh instead of OBJ too and the scripts are out of DLL. They aren't really useful for anything outside of font creation. Not putting them in Scripting references to avoid clutter.
Version 1.4.01
Slider Value range events have been added
Text has new
bool activateChildObjects
. This creates child characters as inactive.
Version 1.4.0
bool useUpperCaseLettersIfLowerCaseIsMissing added to Font class. Does what it says.
Nothing in the MText.FontCreation namespace is meant to be used by anything other than what it does already. The code is quiet messy and hard to provide support for. So, wrapping it in a DLL. Will slowly organize stuff and move out of DLL one by one.
Version 1.3.23
Slider & Input string visual update methods now take style options from List just like buttons
PressButtonDontCallList()
is a new method to press a button without calling the parent list. Primarily used by List itself to avoid recursive calls byPressButton()
InputField now has public
UpdateText()
,UpdateText(string)
,UpdateText(int)
,UpdateText(float)
Modular3DText.cs
&&MText_UI_Button
now has aLoadDefaultSettings()
method that does what it says.
Last updated