v3.11.4 Documentation
Fungus.TextAdapter Class Reference

Helper class for hiding the many, many ways we might want to show text to the user. More...

Inheritance diagram for Fungus.TextAdapter:
Fungus.IWriterTextDestination

Public Member Functions

void InitFromGameObject (GameObject go, bool includeChildren=false)
 
void ForceRichText ()
 
void SetTextColor (Color textColor)
 
void SetTextAlpha (float textAlpha)
 
bool HasTextObject ()
 
bool SupportsRichText ()
 

Protected Attributes

Text textUI
 
InputField inputField
 
TextMesh textMesh
 
Component textComponent
 
PropertyInfo textProperty
 
IWriterTextDestination writerTextDestination
 

Properties

virtual string Text [get, set]
 
- Properties inherited from Fungus.IWriterTextDestination
string Text [get, set]
 

Detailed Description

Helper class for hiding the many, many ways we might want to show text to the user.

Definition at line 10 of file TextAdapter.cs.

Member Function Documentation

◆ ForceRichText()

void Fungus.TextAdapter.ForceRichText ( )

Implements Fungus.IWriterTextDestination.

Definition at line 72 of file TextAdapter.cs.

◆ HasTextObject()

bool Fungus.TextAdapter.HasTextObject ( )

Implements Fungus.IWriterTextDestination.

Definition at line 163 of file TextAdapter.cs.

◆ InitFromGameObject()

void Fungus.TextAdapter.InitFromGameObject ( GameObject  go,
bool  includeChildren = false 
)

Definition at line 22 of file TextAdapter.cs.

◆ SetTextAlpha()

void Fungus.TextAdapter.SetTextAlpha ( float  textAlpha)

Implements Fungus.IWriterTextDestination.

Definition at line 128 of file TextAdapter.cs.

◆ SetTextColor()

void Fungus.TextAdapter.SetTextColor ( Color  textColor)

Implements Fungus.IWriterTextDestination.

Definition at line 99 of file TextAdapter.cs.

◆ SupportsRichText()

bool Fungus.TextAdapter.SupportsRichText ( )

Implements Fungus.IWriterTextDestination.

Definition at line 172 of file TextAdapter.cs.

Member Data Documentation

◆ inputField

InputField Fungus.TextAdapter.inputField
protected

Definition at line 13 of file TextAdapter.cs.

◆ textComponent

Component Fungus.TextAdapter.textComponent
protected

Definition at line 18 of file TextAdapter.cs.

◆ textMesh

TextMesh Fungus.TextAdapter.textMesh
protected

Definition at line 14 of file TextAdapter.cs.

◆ textProperty

PropertyInfo Fungus.TextAdapter.textProperty
protected

Definition at line 19 of file TextAdapter.cs.

◆ textUI

Text Fungus.TextAdapter.textUI
protected

Definition at line 12 of file TextAdapter.cs.

◆ writerTextDestination

IWriterTextDestination Fungus.TextAdapter.writerTextDestination
protected

Definition at line 20 of file TextAdapter.cs.

Property Documentation

◆ Text

virtual string Fungus.TextAdapter.Text
getset

Definition at line 200 of file TextAdapter.cs.


The documentation for this class was generated from the following file: