Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
TMPro.MaterialReference Struct Reference

Public Member Functions

 MaterialReference (int index, TMP_FontAsset fontAsset, TMP_SpriteAsset spriteAsset, Material material, float padding)
 Constructor for new Material Reference. More...
 

Static Public Member Functions

static int AddMaterialReference (Material material, TMP_FontAsset fontAsset, MaterialReference[] materialReferences, Dictionary< int, int > materialReferenceIndexLookup)
 Function to add a new material reference and returning its index in the material reference array. More...
 
static int AddMaterialReference (Material material, TMP_SpriteAsset spriteAsset, MaterialReference[] materialReferences, Dictionary< int, int > materialReferenceIndexLookup)
 
static bool Contains (MaterialReference[] materialReferences, TMP_FontAsset fontAsset)
 Function to check if a certain font asset is contained in the material reference array. More...
 

Public Attributes

Material fallbackMaterial
 
TMP_FontAsset fontAsset
 
int index
 
bool isDefaultMaterial
 
bool isFallbackMaterial
 
Material material
 
float padding
 
int referenceCount
 
TMP_SpriteAsset spriteAsset
 

Constructor & Destructor Documentation

TMPro.MaterialReference.MaterialReference ( int  index,
TMP_FontAsset  fontAsset,
TMP_SpriteAsset  spriteAsset,
Material  material,
float  padding 
)
inline

Constructor for new Material Reference.

Parameters
index
fontAsset
spriteAsset
material
padding

Member Function Documentation

static int TMPro.MaterialReference.AddMaterialReference ( Material  material,
TMP_FontAsset  fontAsset,
MaterialReference[]  materialReferences,
Dictionary< int, int >  materialReferenceIndexLookup 
)
inlinestatic

Function to add a new material reference and returning its index in the material reference array.

Parameters
material
fontAsset
materialReferences
materialReferenceIndexLookup
Returns
static int TMPro.MaterialReference.AddMaterialReference ( Material  material,
TMP_SpriteAsset  spriteAsset,
MaterialReference[]  materialReferences,
Dictionary< int, int >  materialReferenceIndexLookup 
)
inlinestatic

Parameters
material
spriteAsset
materialReferences
materialReferenceIndexLookup
Returns
static bool TMPro.MaterialReference.Contains ( MaterialReference[]  materialReferences,
TMP_FontAsset  fontAsset 
)
inlinestatic

Function to check if a certain font asset is contained in the material reference array.

Parameters
materialReferences
fontAsset
Returns

Member Data Documentation

Material TMPro.MaterialReference.fallbackMaterial
TMP_FontAsset TMPro.MaterialReference.fontAsset
int TMPro.MaterialReference.index
bool TMPro.MaterialReference.isDefaultMaterial
bool TMPro.MaterialReference.isFallbackMaterial
Material TMPro.MaterialReference.material
float TMPro.MaterialReference.padding
int TMPro.MaterialReference.referenceCount
TMP_SpriteAsset TMPro.MaterialReference.spriteAsset

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