Class StandardUIResourcesReferences
UI references. This is the UIToolkit's team's recommended solution to get around uss resource stripping without including a Resources file in the package
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Industrial.Forma.StandardUI
Syntax
[Serializable]
public class StandardUIResourcesReferences : MonoBehaviour
Methods
GetFont(String)
Get font
Declaration
public Font GetFont(string fontName)
Parameters
Type | Name | Description |
---|---|---|
String | fontName | Font name |
Returns
Type | Description |
---|---|
Font | Font |
GetImage(String)
Get image from resource cache
Declaration
public Texture2D GetImage(string imageName)
Parameters
Type | Name | Description |
---|---|---|
String | imageName | Image name |
Returns
Type | Description |
---|---|
Texture2D | Image if found |
GetStyleSheet(String)
Get uss stylesheet
Declaration
public StyleSheet GetStyleSheet(string stylesheetName)
Parameters
Type | Name | Description |
---|---|---|
String | stylesheetName | Stylesheet name |
Returns
Type | Description |
---|---|
StyleSheet | Stylesheet |
LandscapeStyleSheet()
Get the Landscape stylesheet
Declaration
public StyleSheet LandscapeStyleSheet()
Returns
Type | Description |
---|---|
StyleSheet | Stylesheet |