terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Graphic.cs
Go to the documentation of this file.
1using System;
10
11namespace UnityEngine.UI
12{
13 // Token: 0x0200001C RID: 28
17 public abstract class Graphic : UIBehaviour, ICanvasElement
18 {
19 // Token: 0x17000035 RID: 53
20 // (get) Token: 0x060000E1 RID: 225 RVA: 0x00003DB0 File Offset: 0x00001FB0
22 {
23 get
24 {
25 /*
26An exception occurred when decompiling this method (060000E1)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Material UnityEngine.UI.Graphic::get_defaultGraphicMaterial()
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 IL_0003:
33 stloc:Material(var_2_0A, call:Material(Canvas::GetDefaultCanvasMaterial))
34}
35
36 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
37 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
38 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
39 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
40 --- End of inner exception stack trace ---
41 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
42 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
43*/;
44 }
45 }
46
47 // Token: 0x17000036 RID: 54
48 // (get) Token: 0x060000E2 RID: 226 RVA: 0x00003DC8 File Offset: 0x00001FC8
49 // (set) Token: 0x060000E3 RID: 227 RVA: 0x00003E04 File Offset: 0x00002004
50 public virtual Color color
51 {
52 get
53 {
54 /*
55An exception occurred when decompiling this method (060000E2)
56
57ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color UnityEngine.UI.Graphic::get_color()
58
59 ---> System.Exception: Basic block has to end with unconditional control flow.
60{
61 Block_0:
62 stloc:float32(var_0_0B, ldfld:float32(Color::r, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](Graphic::m_Color, ldloc:Graphic(this))))
63 stloc:float32(var_1_17, ldfld:float32(Color::g, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](Graphic::m_Color, ldloc:Graphic(this))))
64 stloc:float32(var_2_23, ldfld:float32(Color::b, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](Graphic::m_Color, ldloc:Graphic(this))))
65 stloc:float32(var_3_2F, ldfld:float32(Color::a, ldfld:Color[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Color&](Graphic::m_Color, ldloc:Graphic(this))))
66}
67
68 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
69 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
70 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
71 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
72 --- End of inner exception stack trace ---
73 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
74 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
75*/;
76 }
77 set
78 {
79 }
80 }
81
82 // Token: 0x17000037 RID: 55
83 // (get) Token: 0x060000E4 RID: 228 RVA: 0x00003E14 File Offset: 0x00002014
84 // (set) Token: 0x060000E5 RID: 229 RVA: 0x00003E28 File Offset: 0x00002028
85 public virtual bool raycastTarget
86 {
87 get
88 {
89 return this.m_RaycastTarget;
90 }
91 set
92 {
93 if (this.m_RaycastTarget)
94 {
96 }
97 bool isActiveAndEnabled = base.isActiveAndEnabled;
99 }
100 }
101
102 // Token: 0x17000038 RID: 56
103 // (get) Token: 0x060000E6 RID: 230 RVA: 0x00003E5C File Offset: 0x0000205C
104 // (set) Token: 0x060000E7 RID: 231 RVA: 0x00003E9C File Offset: 0x0000209C
106 {
107 get
108 {
109 float x = this.m_RaycastPadding.x;
110 float y = this.m_RaycastPadding.y;
111 float z = this.m_RaycastPadding.z;
112 float w = this.m_RaycastPadding.w;
113 Vector4 vector;
114 return vector;
115 }
116 set
117 {
118 }
119 }
120
121 // Token: 0x17000039 RID: 57
122 // (get) Token: 0x060000E8 RID: 232 RVA: 0x00003EAC File Offset: 0x000020AC
123 // (set) Token: 0x060000E9 RID: 233 RVA: 0x00003EC0 File Offset: 0x000020C0
125 {
127 get
128 {
130 }
132 set
133 {
134 }
135 }
136
137 // Token: 0x060000EA RID: 234 RVA: 0x00003ED0 File Offset: 0x000020D0
138 protected Graphic()
139 {
140 if (this.m_ColorTweenRunner == null)
141 {
142 }
144 }
145
146 // Token: 0x060000EB RID: 235 RVA: 0x00003F00 File Offset: 0x00002100
147 public virtual void SetAllDirty()
148 {
149 if (this.m_SkipLayoutUpdate)
150 {
151 return;
152 }
153 if (this.m_SkipMaterialUpdate)
154 {
155 return;
156 }
157 this.SetRaycastDirty();
158 }
159
160 // Token: 0x060000EC RID: 236 RVA: 0x00003F28 File Offset: 0x00002128
161 public virtual void SetLayoutDirty()
162 {
165 if (onDirtyLayoutCallback != null)
166 {
167 IntPtr invoke_impl = onDirtyLayoutCallback.invoke_impl;
168 IntPtr method_code = onDirtyLayoutCallback.method_code;
169 IntPtr method = onDirtyLayoutCallback.method;
170 return;
171 }
172 }
173
174 // Token: 0x060000ED RID: 237 RVA: 0x00003F60 File Offset: 0x00002160
175 public virtual void SetVerticesDirty()
176 {
177 this.m_VertsDirty = true;
180 if (onDirtyVertsCallback != null)
181 {
182 IntPtr invoke_impl = onDirtyVertsCallback.invoke_impl;
183 IntPtr method_code = onDirtyVertsCallback.method_code;
184 IntPtr method = onDirtyVertsCallback.method;
185 return;
186 }
187 }
188
189 // Token: 0x060000EE RID: 238 RVA: 0x00003F9C File Offset: 0x0000219C
190 public virtual void SetMaterialDirty()
191 {
195 if (onDirtyMaterialCallback != null)
196 {
197 IntPtr invoke_impl = onDirtyMaterialCallback.invoke_impl;
198 IntPtr method_code = onDirtyMaterialCallback.method_code;
199 IntPtr method = onDirtyMaterialCallback.method;
200 return;
201 }
202 }
203
204 // Token: 0x060000EF RID: 239 RVA: 0x00003FD8 File Offset: 0x000021D8
205 public void SetRaycastDirty()
206 {
208 if (this.m_RaycastTarget)
209 {
210 bool isActiveAndEnabled = base.isActiveAndEnabled;
211 Canvas canvas = this.canvas;
212 if (!raycastTargetCache)
213 {
214 }
216 return;
217 }
218 Canvas canvas2 = this.canvas;
219 if (!raycastTargetCache)
220 {
221 }
223 bool raycastTarget = this.m_RaycastTarget;
225 }
226
227 // Token: 0x060000F0 RID: 240 RVA: 0x00004038 File Offset: 0x00002238
228 protected override void OnRectTransformDimensionsChange()
229 {
230 bool activeInHierarchy = base.gameObject.activeInHierarchy;
232 }
233
234 // Token: 0x060000F1 RID: 241 RVA: 0x00004058 File Offset: 0x00002258
240
241 // Token: 0x060000F2 RID: 242 RVA: 0x0000407C File Offset: 0x0000227C
242 protected override void OnTransformParentChanged()
243 {
244 base.OnTransformParentChanged();
245 this.CacheCanvas();
247 }
248
249 // Token: 0x1700003A RID: 58
250 // (get) Token: 0x060000F3 RID: 243 RVA: 0x000040A4 File Offset: 0x000022A4
251 public int depth
252 {
253 get
254 {
255 return this.canvasRenderer.absoluteDepth;
256 }
257 }
258
259 // Token: 0x1700003B RID: 59
260 // (get) Token: 0x060000F4 RID: 244 RVA: 0x000040BC File Offset: 0x000022BC
262 {
263 get
264 {
265 RectTransform component;
266 if (this.m_RectTransform == null)
267 {
268 component = base.GetComponent<RectTransform>();
269 this.m_RectTransform = component;
270 }
271 return component;
272 }
273 }
274
275 // Token: 0x1700003C RID: 60
276 // (get) Token: 0x060000F5 RID: 245 RVA: 0x000040E0 File Offset: 0x000022E0
278 {
279 get
280 {
281 Canvas canvas = this.m_Canvas;
282 if (!true)
283 {
284 }
285 this.CacheCanvas();
286 return this.m_Canvas;
287 }
288 }
289
290 // Token: 0x060000F6 RID: 246 RVA: 0x00004104 File Offset: 0x00002304
291 private void CacheCanvas()
292 {
293 if (!true)
294 {
295 }
297 }
298
299 // Token: 0x1700003D RID: 61
300 // (get) Token: 0x060000F7 RID: 247 RVA: 0x00004124 File Offset: 0x00002324
302 {
303 get
304 {
306 if (this.m_CanvasRenderer == null)
307 {
309 this.m_CanvasRenderer = component;
310 if (component == null)
311 {
314 }
315 }
316 return canvasRenderer;
317 }
318 }
319
320 // Token: 0x1700003E RID: 62
321 // (get) Token: 0x060000F8 RID: 248 RVA: 0x00004160 File Offset: 0x00002360
323 {
324 get
325 {
326 if (!true)
327 {
328 }
330 }
331 }
332
333 // Token: 0x1700003F RID: 63
334 // (get) Token: 0x060000F9 RID: 249 RVA: 0x00004178 File Offset: 0x00002378
335 // (set) Token: 0x060000FA RID: 250 RVA: 0x00004198 File Offset: 0x00002398
336 public virtual Material material
337 {
338 get
339 {
341 if (!true)
342 {
343 }
344 return this.m_Material;
345 }
346 set
347 {
349 if (!true)
350 {
351 }
352 bool flag = material == value;
353 }
354 }
355
356 // Token: 0x17000040 RID: 64
357 // (get) Token: 0x060000FB RID: 251 RVA: 0x000041C0 File Offset: 0x000023C0
359 {
360 get
361 {
362 if (!true)
363 {
364 return;
365 }
366 }
367 }
368
369 // Token: 0x17000041 RID: 65
370 // (get) Token: 0x060000FC RID: 252 RVA: 0x000041D4 File Offset: 0x000023D4
371 public virtual Texture mainTexture
372 {
373 get
374 {
375 /*
376An exception occurred when decompiling this method (060000FC)
377
378ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Texture UnityEngine.UI.Graphic::get_mainTexture()
379
380 ---> System.Exception: Basic block has to end with unconditional control flow.
381{
382 IL_0000:
383 brtrue(IL_0000, ldc.i4:bool(1))
384}
385
386 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
387 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
388 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
389 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
390 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
391 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
392 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
393 --- End of inner exception stack trace ---
394 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
395 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
396*/;
397 }
398 }
399
400 // Token: 0x060000FD RID: 253 RVA: 0x000041E4 File Offset: 0x000023E4
401 protected override void OnEnable()
402 {
403 base.OnEnable();
404 this.CacheCanvas();
406 Texture2D whiteTexture = Texture2D.whiteTexture;
407 }
408
409 // Token: 0x060000FE RID: 254 RVA: 0x00004214 File Offset: 0x00002414
410 protected override void OnDisable()
411 {
415 this.canvasRenderer.Clear();
417 base.OnDisable();
418 }
419
420 // Token: 0x060000FF RID: 255 RVA: 0x00004258 File Offset: 0x00002458
421 protected override void OnDestroy()
422 {
425 bool flag = this.m_CachedMesh;
427 base.OnDestroy();
428 }
429
430 // Token: 0x06000100 RID: 256 RVA: 0x00004294 File Offset: 0x00002494
431 protected override void OnCanvasHierarchyChanged()
432 {
433 Canvas canvas = this.m_Canvas;
434 this.CacheCanvas();
435 Canvas canvas2 = this.m_Canvas;
436 bool flag = canvas != canvas2;
438 Canvas canvas3 = this.canvas;
440 }
441
442 // Token: 0x06000101 RID: 257 RVA: 0x000042DC File Offset: 0x000024DC
443 public virtual void OnCullingChanged()
444 {
445 bool cull = this.canvasRenderer.cull;
446 }
447
448 // Token: 0x06000102 RID: 258 RVA: 0x0000430C File Offset: 0x0000250C
449 public virtual void Rebuild(CanvasUpdate update)
450 {
452 bool cull = this.canvasRenderer.cull;
453 if (this.m_VertsDirty)
454 {
455 }
456 if (this.m_MaterialDirty)
457 {
458 }
459 }
460
461 // Token: 0x06000103 RID: 259 RVA: 0x0000433C File Offset: 0x0000253C
462 public virtual void LayoutComplete()
463 {
464 }
465
466 // Token: 0x06000104 RID: 260 RVA: 0x0000434C File Offset: 0x0000254C
467 public virtual void GraphicUpdateComplete()
468 {
469 }
470
471 // Token: 0x06000105 RID: 261 RVA: 0x0000435C File Offset: 0x0000255C
478
479 // Token: 0x06000106 RID: 262 RVA: 0x00004384 File Offset: 0x00002584
480 protected virtual void UpdateGeometry()
481 {
483 {
485 return;
486 }
487 this.DoMeshGeneration();
488 }
489
490 // Token: 0x06000107 RID: 263 RVA: 0x000043A8 File Offset: 0x000025A8
491 private void DoMeshGeneration()
492 {
494 float width = this.rectTransform.rect.width;
495 float height = this.rectTransform.rect.height;
496 }
497
498 // Token: 0x06000108 RID: 264 RVA: 0x00004410 File Offset: 0x00002610
500 {
502 float width = this.rectTransform.rect.width;
503 float height = this.rectTransform.rect.height;
506 }
507
508 // Token: 0x17000042 RID: 66
509 // (get) Token: 0x06000109 RID: 265 RVA: 0x00004490 File Offset: 0x00002690
510 protected static Mesh workerMesh
511 {
512 get
513 {
514 /*
515An exception occurred when decompiling this method (06000109)
516
517ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Mesh UnityEngine.UI.Graphic::get_workerMesh()
518
519 ---> System.Exception: Basic block has to end with unconditional control flow.
520{
521 IL_0000:
522 brtrue(IL_0000, ldc.i4:bool(1))
523}
524
525 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
526 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
527 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
528 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
529 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
530 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
531 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
532 --- End of inner exception stack trace ---
533 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
534 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
535*/;
536 }
537 }
538
539 // Token: 0x0600010A RID: 266 RVA: 0x000044A0 File Offset: 0x000026A0
540 [Obsolete("Use OnPopulateMesh instead.", true)]
542 protected virtual void OnFillVBO(List<UIVertex> vbo)
543 {
544 }
545
546 // Token: 0x0600010B RID: 267 RVA: 0x000044B0 File Offset: 0x000026B0
547 [Obsolete("Use OnPopulateMesh(VertexHelper vh) instead.", false)]
548 protected virtual void OnPopulateMesh(Mesh m)
549 {
550 if (!true)
551 {
552 }
553 }
554
555 // Token: 0x0600010C RID: 268 RVA: 0x000044C0 File Offset: 0x000026C0
556 protected virtual void OnPopulateMesh(VertexHelper vh)
557 {
559 float x = pixelAdjustedRect.x;
560 float y = pixelAdjustedRect.y;
561 float x2 = pixelAdjustedRect.x;
562 float width = pixelAdjustedRect.width;
563 float y2 = pixelAdjustedRect.y;
564 float height = pixelAdjustedRect.height;
565 }
566
567 // Token: 0x0600010D RID: 269 RVA: 0x00004530 File Offset: 0x00002730
568 protected override void OnDidApplyAnimationProperties()
569 {
570 }
571
572 // Token: 0x0600010E RID: 270 RVA: 0x00004540 File Offset: 0x00002740
573 public virtual void SetNativeSize()
574 {
575 }
576
577 // Token: 0x0600010F RID: 271 RVA: 0x00004550 File Offset: 0x00002750
578 public virtual bool Raycast(Vector2 sp, Camera eventCamera)
579 {
580 /*
581An exception occurred when decompiling this method (0600010F)
582
583ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.Graphic::Raycast(UnityEngine.Vector2,UnityEngine.Camera)
584
585 ---> System.Exception: Basic block has to end with unconditional control flow.
586{
587 IL_002A:
588 stloc:Material(var_12_30, ldfld:Material(Graphic::m_Material, ldloc:Graphic(this)))
589}
590
591 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
592 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
593 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
594 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
595 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
596 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
597 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
598 --- End of inner exception stack trace ---
599 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
600 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
601*/;
602 }
603
604 // Token: 0x06000110 RID: 272 RVA: 0x00004594 File Offset: 0x00002794
606 {
607 /*
608An exception occurred when decompiling this method (06000110)
609
610ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector2 UnityEngine.UI.Graphic::PixelAdjustPoint(UnityEngine.Vector2)
611
612 ---> System.Exception: Basic block has to end with unconditional control flow.
613{
614 Block_0:
615 stloc:bool(var_0_0B, call:bool(Object::op_Implicit, callgetter:Canvas[exp:Object](Graphic::get_canvas, ldloc:Graphic(this))))
616 stloc:RenderMode(var_1_17, callgetter:RenderMode(Canvas::get_renderMode, callgetter:Canvas(Graphic::get_canvas, ldloc:Graphic(this))))
617 stloc:float32(var_2_23, callgetter:float32(Canvas::get_scaleFactor, callgetter:Canvas(Graphic::get_canvas, ldloc:Graphic(this))))
618 stloc:bool(var_3_2F, callgetter:bool(Canvas::get_pixelPerfect, callgetter:Canvas(Graphic::get_canvas, ldloc:Graphic(this))))
619 stloc:Transform(var_4_36, callgetter:Transform(Component::get_transform, ldloc:Graphic[exp:Component](this)))
620 stloc:Canvas(var_5_3E, callgetter:Canvas(Graphic::get_canvas, ldloc:Graphic(this)))
621}
622
623 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
624 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
625 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
626 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
627 --- End of inner exception stack trace ---
628 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
629 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
630*/;
631 }
632
633 // Token: 0x06000111 RID: 273 RVA: 0x000045E0 File Offset: 0x000027E0
635 {
636 bool flag = this.canvas;
637 RenderMode renderMode = this.canvas.renderMode;
638 float scaleFactor = this.canvas.scaleFactor;
639 bool pixelPerfect = this.canvas.pixelPerfect;
641 Canvas canvas = this.canvas;
643 }
644
645 // Token: 0x06000112 RID: 274 RVA: 0x00004640 File Offset: 0x00002840
646 public virtual void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
647 {
648 }
649
650 // Token: 0x06000113 RID: 275 RVA: 0x00004650 File Offset: 0x00002850
651 public virtual void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
652 {
654 Color color = this.canvasRenderer.GetColor();
656 }
657
658 // Token: 0x06000114 RID: 276 RVA: 0x00002207 File Offset: 0x00000407
659 private static Color CreateColorFromAlpha(float alpha)
660 {
661 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
662 }
663
664 // Token: 0x06000115 RID: 277 RVA: 0x0000469C File Offset: 0x0000289C
665 public virtual void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
666 {
667 if (!true)
668 {
669 }
670 }
671
672 // Token: 0x06000116 RID: 278 RVA: 0x000046AC File Offset: 0x000028AC
683
684 // Token: 0x06000117 RID: 279 RVA: 0x000046E0 File Offset: 0x000028E0
695
696 // Token: 0x06000118 RID: 280 RVA: 0x00004714 File Offset: 0x00002914
707
708 // Token: 0x06000119 RID: 281 RVA: 0x00004748 File Offset: 0x00002948
719
720 // Token: 0x0600011A RID: 282 RVA: 0x0000477C File Offset: 0x0000297C
731
732 // Token: 0x0600011B RID: 283 RVA: 0x000047B0 File Offset: 0x000029B0
743
744 // Token: 0x0600011C RID: 284 RVA: 0x000047E4 File Offset: 0x000029E4
745 // Note: this type is marked as 'beforefieldinit'.
746 static Graphic()
747 {
748 }
749
750 // Token: 0x0600011D RID: 285 RVA: 0x000047F4 File Offset: 0x000029F4
751 Transform ICanvasElement.get_transform()
752 {
753 return base.transform;
754 }
755
756 // Token: 0x04000068 RID: 104
757 protected static Material s_DefaultUI;
758
759 // Token: 0x04000069 RID: 105
760 protected static Texture2D s_WhiteTexture;
761
762 // Token: 0x0400006A RID: 106
764 [FormerlySerializedAs("m_Mat")]
766
767 // Token: 0x0400006B RID: 107
769 private Color m_Color;
770
771 // Token: 0x0400006C RID: 108
773 protected bool m_SkipLayoutUpdate;
774
775 // Token: 0x0400006D RID: 109
777 protected bool m_SkipMaterialUpdate;
778
779 // Token: 0x0400006E RID: 110
781 private bool m_RaycastTarget = 257 != 0;
782
783 // Token: 0x0400006F RID: 111
785
786 // Token: 0x04000070 RID: 112
789
790 // Token: 0x04000071 RID: 113
793
794 // Token: 0x04000072 RID: 114
797
798 // Token: 0x04000073 RID: 115
801
802 // Token: 0x04000074 RID: 116
804 private bool m_VertsDirty;
805
806 // Token: 0x04000075 RID: 117
808 private bool m_MaterialDirty;
809
810 // Token: 0x04000076 RID: 118
813
814 // Token: 0x04000077 RID: 119
817
818 // Token: 0x04000078 RID: 120
821
822 // Token: 0x04000079 RID: 121
824 protected static Mesh s_Mesh;
825
826 // Token: 0x0400007A RID: 122
829
830 // Token: 0x0400007B RID: 123
833
834 // Token: 0x0400007C RID: 124
836 protected Vector2[] m_CachedUvs;
837
838 // Token: 0x0400007D RID: 125
841
842 // Token: 0x0400007E RID: 126
844 private bool <useLegacyMeshGeneration>k__BackingField;
845 }
846}
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
float scaleFactor
Definition Canvas.cs:89
RenderMode renderMode
Definition Canvas.cs:68
Component GetComponent(Type type)
Definition Component.cs:41
GameObject gameObject
Definition Component.cs:31
Component AddComponent(Type componentType)
void Clear([DefaultValue("true")] bool keepVertexLayout)
Definition Mesh.cs:552
static void Destroy(Object obj, [DefaultValue("0.0F")] float t)
Definition Object.cs:159
static Rect PixelAdjustRect(RectTransform rectTransform, Canvas canvas)
static Texture2D whiteTexture
Definition Texture2D.cs:32
static void RegisterCanvasElementForGraphicRebuild(ICanvasElement element)
static void UnRegisterCanvasElementForRebuild(ICanvasElement element)
static void DisableCanvasElementForRebuild(ICanvasElement element)
static void UnregisterRaycastGraphicForCanvas(Canvas c, Graphic graphic)
static void DisableGraphicForCanvas(Canvas c, Graphic graphic)
static void UnregisterGraphicForCanvas(Canvas c, Graphic graphic)
static void RegisterGraphicForCanvas(Canvas c, Graphic graphic)
static void RegisterRaycastGraphicForCanvas(Canvas c, Graphic graphic)
bool< useLegacyMeshGeneration > k__BackingField
Definition Graphic.cs:844
override void OnRectTransformDimensionsChange()
Definition Graphic.cs:228
UnityAction m_OnDirtyVertsCallback
Definition Graphic.cs:816
virtual bool raycastTarget
Definition Graphic.cs:86
static Material s_DefaultUI
Definition Graphic.cs:757
virtual Texture mainTexture
Definition Graphic.cs:372
virtual void OnCullingChanged()
Definition Graphic.cs:443
void RegisterDirtyMaterialCallback(UnityAction action)
Definition Graphic.cs:721
override void OnCanvasHierarchyChanged()
Definition Graphic.cs:431
UnityAction m_OnDirtyLayoutCallback
Definition Graphic.cs:812
virtual void SetVerticesDirty()
Definition Graphic.cs:175
CanvasRenderer canvasRenderer
Definition Graphic.cs:302
virtual bool Raycast(Vector2 sp, Camera eventCamera)
Definition Graphic.cs:578
static Mesh workerMesh
Definition Graphic.cs:511
void UnregisterDirtyLayoutCallback(UnityAction action)
Definition Graphic.cs:685
override void OnDidApplyAnimationProperties()
Definition Graphic.cs:568
Rect GetPixelAdjustedRect()
Definition Graphic.cs:634
virtual void OnPopulateMesh(Mesh m)
Definition Graphic.cs:548
virtual void SetMaterialDirty()
Definition Graphic.cs:190
virtual Color color
Definition Graphic.cs:51
virtual void GraphicUpdateComplete()
Definition Graphic.cs:467
override void OnDisable()
Definition Graphic.cs:410
override void OnDestroy()
Definition Graphic.cs:421
void RegisterDirtyLayoutCallback(UnityAction action)
Definition Graphic.cs:673
void UnregisterDirtyVerticesCallback(UnityAction action)
Definition Graphic.cs:709
virtual Material materialForRendering
Definition Graphic.cs:359
virtual void SetNativeSize()
Definition Graphic.cs:573
Vector2[] m_CachedUvs
Definition Graphic.cs:836
virtual void OnFillVBO(List< UIVertex > vbo)
Definition Graphic.cs:542
virtual void SetAllDirty()
Definition Graphic.cs:147
virtual void UpdateGeometry()
Definition Graphic.cs:480
virtual void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
Definition Graphic.cs:665
RectTransform m_RectTransform
Definition Graphic.cs:792
static Mesh s_Mesh
Definition Graphic.cs:824
virtual void OnPopulateMesh(VertexHelper vh)
Definition Graphic.cs:556
override void OnEnable()
Definition Graphic.cs:401
CanvasRenderer m_CanvasRenderer
Definition Graphic.cs:796
RectTransform rectTransform
Definition Graphic.cs:262
void RegisterDirtyVerticesCallback(UnityAction action)
Definition Graphic.cs:697
virtual void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
Definition Graphic.cs:646
static Material defaultGraphicMaterial
Definition Graphic.cs:22
static Texture2D s_WhiteTexture
Definition Graphic.cs:760
virtual void UpdateMaterial()
Definition Graphic.cs:472
override void OnTransformParentChanged()
Definition Graphic.cs:242
readonly TweenRunner< ColorTween > m_ColorTweenRunner
Definition Graphic.cs:840
virtual Material material
Definition Graphic.cs:337
void UnregisterDirtyMaterialCallback(UnityAction action)
Definition Graphic.cs:733
virtual void Rebuild(CanvasUpdate update)
Definition Graphic.cs:449
virtual Material defaultMaterial
Definition Graphic.cs:323
UnityAction m_OnDirtyMaterialCallback
Definition Graphic.cs:820
Vector2 PixelAdjustPoint(Vector2 point)
Definition Graphic.cs:605
virtual void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
Definition Graphic.cs:651
static Color CreateColorFromAlpha(float alpha)
Definition Graphic.cs:659
override void OnBeforeTransformParentChanged()
Definition Graphic.cs:235
static readonly VertexHelper s_VertexHelper
Definition Graphic.cs:828
virtual void SetLayoutDirty()
Definition Graphic.cs:161
virtual void LayoutComplete()
Definition Graphic.cs:462
void DoLegacyMeshGeneration()
Definition Graphic.cs:499
static void MarkLayoutForRebuild(RectTransform rect)
float height
Definition Rect.cs:175
float width
Definition Rect.cs:143