Definition at line 8 of file InnerOutline.cs.
◆ ColorMode
◆ InnerOutline()
InnerOutline.InnerOutline |
( |
| ) |
|
|
inlineprotected |
◆ GetModifiedMaterial()
Definition at line 121 of file InnerOutline.cs.
122 {
123 if (!IsActive())
124 {
125 return baseMaterial;
126 }
127 if (baseMaterial.shader != Shader.Find("Text Effects/Fancy Text"))
128 {
129 Debug.Log(
"\"" + base.gameObject.name +
"\" doesn't have the \"Fancy Text\" shader applied. Please use it if you are using the \"Inner Outline\" effect.");
130 return baseMaterial;
131 }
133 {
135 }
137 m_ModifiedMaterial.name = baseMaterial.name + " with IO";
138 m_ModifiedMaterial.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
139 m_ModifiedMaterial.shaderKeywords = baseMaterial.shaderKeywords;
147 }
bool m_NeedsToSetMaterialDirty
Material m_ModifiedMaterial
References colorMode, Debug, m_ModifiedMaterial, m_NeedsToSetMaterialDirty, Material, outlineColor, and outlineThickness.
◆ ModifyMesh()
override void InnerOutline.ModifyMesh |
( |
VertexHelper |
vh | ) |
|
|
inline |
Definition at line 92 of file InnerOutline.cs.
93 {
94 if (!IsActive())
95 {
96 return;
97 }
100 for (int i = 0; i < count; i++)
101 {
103 if (value.uv1 == Vector4.zero)
104 {
105 value.uv1 = new Vector2(1f, 1f);
106 }
108 }
109 vh.Clear();
110 vh.AddUIVertexTriangleStream(
m_Verts);
111 }
References m_Verts.
◆ Start()
override void InnerOutline.Start |
( |
| ) |
|
|
inlineprotected |
Definition at line 84 of file InnerOutline.cs.
85 {
86 if (base.graphic != null)
87 {
88 base.graphic.SetMaterialDirty();
89 }
90 }
◆ Update()
void InnerOutline.Update |
( |
| ) |
|
|
inlineprivate |
◆ m_ColorMode
◆ m_ModifiedMaterial
Material InnerOutline.m_ModifiedMaterial |
|
private |
◆ m_NeedsToSetMaterialDirty
bool InnerOutline.m_NeedsToSetMaterialDirty |
|
private |
◆ m_OutlineColor
Color InnerOutline.m_OutlineColor = Color.black |
◆ m_OutlineThickness
float InnerOutline.m_OutlineThickness = 1f |
|
private |
◆ m_Verts
List<UIVertex> InnerOutline.m_Verts = new List<UIVertex>() |
|
private |
◆ colorMode
Definition at line 32 of file InnerOutline.cs.
33 {
34 get
35 {
37 }
38 set
39 {
41 if (base.graphic != null)
42 {
43 base.graphic.SetVerticesDirty();
44 }
45 }
46 }
Referenced by GetModifiedMaterial().
◆ outlineColor
Color InnerOutline.outlineColor |
|
getset |
Definition at line 48 of file InnerOutline.cs.
49 {
50 get
51 {
53 }
54 set
55 {
57 if (base.graphic != null)
58 {
59 base.graphic.SetVerticesDirty();
60 }
61 }
62 }
Referenced by GetModifiedMaterial().
◆ outlineThickness
float InnerOutline.outlineThickness |
|
getset |
Definition at line 64 of file InnerOutline.cs.
65 {
66 get
67 {
69 }
70 set
71 {
73 if (base.graphic != null)
74 {
75 base.graphic.SetVerticesDirty();
76 }
77 }
78 }
Referenced by GetModifiedMaterial().
The documentation for this class was generated from the following file: