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
GameObjectExtensions.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5// Token: 0x020002FD RID: 765
6public static class GameObjectExtensions
7{
8 // Token: 0x060011B9 RID: 4537 RVA: 0x00056E80 File Offset: 0x00055080
9 public static GameObject FindInChildren(this GameObject gameObject, string name)
10 {
11 if (!true)
12 {
13 }
14 if (!true)
15 {
16 }
17 Transform transform;
18 return transform.gameObject;
19 }
20
21 // Token: 0x060011BA RID: 4538 RVA: 0x00056E9C File Offset: 0x0005509C
22 public static T FindInChildren<T>(this GameObject gameObject) where T : Component
23 {
24 if (!true)
25 {
26 return;
27 }
28 }
29
30 // Token: 0x060011BB RID: 4539 RVA: 0x00056EB0 File Offset: 0x000550B0
31 public static T FindInObjectOrChildren<T>(this GameObject gameObject) where T : Component
32 {
33 if (!true)
34 {
35 return;
36 }
37 }
38
39 // Token: 0x060011BC RID: 4540 RVA: 0x00056EC4 File Offset: 0x000550C4
40 public static T[] GetComponentsInObjectChildren<T>(this GameObject gameObject) where T : Component
41 {
42 }
43
44 // Token: 0x060011BD RID: 4541 RVA: 0x00056ED4 File Offset: 0x000550D4
45 public static T FindInParents<T>(this GameObject gameObject) where T : Component
46 {
47 if (!true)
48 {
49 return;
50 }
51 }
52
53 // Token: 0x060011BE RID: 4542 RVA: 0x000021DB File Offset: 0x000003DB
54 public static T FindInObjectOrParents<T>(this GameObject gameObject) where T : Component
55 {
56 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
57 }
58
59 // Token: 0x060011BF RID: 4543 RVA: 0x00056EE8 File Offset: 0x000550E8
60 public static void SetLayer(this GameObject gameObject, int layer)
61 {
62 if (!true)
63 {
64 }
65 gameObject.transform.SetLayer(layer);
66 }
67
68 // Token: 0x060011C0 RID: 4544 RVA: 0x00056F08 File Offset: 0x00055108
70 {
71 if (!true)
72 {
73 }
74 if (!true)
75 {
76 }
81 long num = 0L;
83 int num2;
84 gameObject2.SetLayer(num2);
85 return gameObject2;
86 }
87
88 // Token: 0x060011C1 RID: 4545 RVA: 0x00056F40 File Offset: 0x00055140
89 public static string GetPath(this GameObject gameObject)
90 {
91 Transform transform;
92 return transform.GetPath();
93 }
94
95 // Token: 0x060011C2 RID: 4546 RVA: 0x00056F54 File Offset: 0x00055154
96 public static GameObject Parent(this GameObject gameObject)
97 {
98 Transform transform;
99 Transform parent = transform.parent;
102 }
103}
class f__AnonymousType0<< Count > j__TPar
static GameObject FindInChildren(this GameObject gameObject, string name)
static GameObject InstantiatePrefabAsChild(this GameObject gameObject, GameObject prefab)
static string GetPath(this GameObject gameObject)
static T FindInChildren< T >(this GameObject gameObject)
static void SetLayer(this GameObject gameObject, int layer)
static GameObject Parent(this GameObject gameObject)
static T FindInObjectOrParents< T >(this GameObject gameObject)
static T FindInObjectOrChildren< T >(this GameObject gameObject)
static T[] GetComponentsInObjectChildren< T >(this GameObject gameObject)
static T FindInParents< T >(this GameObject gameObject)
GameObject gameObject
Definition Component.cs:31