using MText
on top of the script when referencing scripts on this asset.Text
Material
FontSize
CharacterSpacing
LineSpacing
Width
Height
Capitalize
LowerCase
pooling
EmptyEffect
(List <effect> effectList)
TextAnchor
assetPath
characterObjectList
RetrievePrefab
(char c)
monoSpaceFont
Spacing
(char c)
characters
monoSpaceFont
emptySpaceSpacing
UpdateList
()Focus
(bool enable)
Focus
(bool enable, bool delay)
SelectItem
(int i
)UnSelectSpecific
(MText_UI_Button button)
UnselectEverything
()
Text
Focus(bool enable)
Focus
(bool enable, bool delay)
background
inFocusBackgroundMat
onInput
onBackSpace
onInputEnd
InputComplete()
interactable
text
SelectedVisual()
UnselectedVisual()
DisableVisual()
Uninteractable()
Interactable
()
UpdateText
()
, UpdateText
(string)
, UpdateText
(int)
, UpdateText
(float)
PressButton
()
SelectButton()
UnselectedButtonVisualUpdate()
PressButtonVisualUpdate()
SelectedButtonVisualUpdate()
DisabledButtonVisualUpdate()
Uninteractable()
Interactable
()
LoadDefaultSettings()
IsOn
Set
(bool)
Toggle ()
ActiveVisualUpdate(),
InactiveVisualUpdate()
IsOn
will automatically update the visual too.Focus
(bool enable)
UpdateValue
(int newValue)
UpdateValue
(float newValue)
SelectedVisual()
UnSelectedVisual()
ClickedVisual()
DisabledVisual()
Uninteractable()
Interactable()
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.UpdateText()
now updates the text no matter what. Use UpdateTextWithCheck()
if you want to update if change is made to the tracked properties.bool activateChildObjects
. This creates child characters as inactive.PressButtonDontCallList()
is a new method to press a button without calling the parent list. Primarily used by List itself to avoid recursive calls by PressButton()
UpdateText()
, UpdateText(string)
, UpdateText(int)
, UpdateText(float)
Modular3DText.cs
&& MText_UI_Button
now has a LoadDefaultSettings()
method that does what it says.