FindContent() private static method

private static FindContent ( string contentName ) : GUIContent
contentName string
return UnityEngine.GUIContent
Exemplo n.º 1
0
 static Styles()
 {
     Styles.graphBackground           = "flow background";
     Styles.connectionTexture         = Styles.FindContent("flow connection texture.png");
     Styles.selectedConnectionTexture = Styles.FindContent("flow selected connection texture.png");
     Styles.varPinIn         = "flow varPin in";
     Styles.varPinOut        = "flow varPin out";
     Styles.varPinTooltip    = "flow varPin tooltip";
     Styles.targetPinIn      = "flow target in";
     Styles.triggerPinIn     = "flow triggerPin in";
     Styles.triggerPinOut    = "flow triggerPin out";
     Styles.selectionRect    = "SelectionRect";
     Styles.nodeTitlebar     = "flow node titlebar";
     Styles.nodeAddButton    = "Label";
     Styles.m_NodeStyleCache = new Dictionary <string, GUIStyle>();
     Styles.nodeGroupButton  = new GUIStyle(EditorStyles.toolbarButton)
     {
         alignment = TextAnchor.MiddleLeft
     };
 }