This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+476
View File
@@ -0,0 +1,476 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Security;
using UnityEngine.Internal;
using UnityEngine.SceneManagement;
using UnityEngine.Scripting;
using UnityEngineInternal;
namespace UnityEngine
{
// Token: 0x0200003F RID: 63
public sealed class GameObject : Object
{
// Token: 0x0600045F RID: 1119 RVA: 0x0000772C File Offset: 0x0000592C
public GameObject(string name)
{
GameObject.Internal_CreateGameObject(this, name);
}
// Token: 0x06000460 RID: 1120 RVA: 0x0000773C File Offset: 0x0000593C
public GameObject()
{
GameObject.Internal_CreateGameObject(this, null);
}
// Token: 0x06000461 RID: 1121 RVA: 0x0000774C File Offset: 0x0000594C
public GameObject(string name, params Type[] components)
{
GameObject.Internal_CreateGameObject(this, name);
foreach (Type type in components)
{
this.AddComponent(type);
}
}
// Token: 0x06000462 RID: 1122
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern GameObject CreatePrimitive(PrimitiveType type);
// Token: 0x06000463 RID: 1123
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern Component GetComponent(Type type);
// Token: 0x06000464 RID: 1124
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern void GetComponentFastPath(Type type, IntPtr oneFurtherThanResultValue);
// Token: 0x06000465 RID: 1125 RVA: 0x0000778C File Offset: 0x0000598C
[SecuritySafeCritical]
public unsafe T GetComponent<T>()
{
CastHelper<T> castHelper = default(CastHelper<T>);
this.GetComponentFastPath(typeof(T), new IntPtr((void*)(&castHelper.onePointerFurtherThanT)));
return castHelper.t;
}
// Token: 0x06000466 RID: 1126
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern Component GetComponentByName(string type);
// Token: 0x06000467 RID: 1127 RVA: 0x000077CC File Offset: 0x000059CC
public Component GetComponent(string type)
{
return this.GetComponentByName(type);
}
// Token: 0x06000468 RID: 1128
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern Component GetComponentInChildren(Type type, bool includeInactive);
// Token: 0x06000469 RID: 1129 RVA: 0x000077E8 File Offset: 0x000059E8
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component GetComponentInChildren(Type type)
{
return this.GetComponentInChildren(type, false);
}
// Token: 0x0600046A RID: 1130 RVA: 0x00007808 File Offset: 0x00005A08
[ExcludeFromDocs]
public T GetComponentInChildren<T>()
{
bool flag = false;
return this.GetComponentInChildren<T>(flag);
}
// Token: 0x0600046B RID: 1131 RVA: 0x00007828 File Offset: 0x00005A28
public T GetComponentInChildren<T>([DefaultValue("false")] bool includeInactive)
{
return (T)((object)this.GetComponentInChildren(typeof(T), includeInactive));
}
// Token: 0x0600046C RID: 1132
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern Component GetComponentInParent(Type type);
// Token: 0x0600046D RID: 1133 RVA: 0x00007854 File Offset: 0x00005A54
public T GetComponentInParent<T>()
{
return (T)((object)this.GetComponentInParent(typeof(T)));
}
// Token: 0x0600046E RID: 1134 RVA: 0x00007880 File Offset: 0x00005A80
public Component[] GetComponents(Type type)
{
return (Component[])this.GetComponentsInternal(type, false, false, true, false, null);
}
// Token: 0x0600046F RID: 1135 RVA: 0x000078A8 File Offset: 0x00005AA8
public T[] GetComponents<T>()
{
return (T[])this.GetComponentsInternal(typeof(T), true, false, true, false, null);
}
// Token: 0x06000470 RID: 1136 RVA: 0x000078D8 File Offset: 0x00005AD8
public void GetComponents(Type type, List<Component> results)
{
this.GetComponentsInternal(type, false, false, true, false, results);
}
// Token: 0x06000471 RID: 1137 RVA: 0x000078E8 File Offset: 0x00005AE8
public void GetComponents<T>(List<T> results)
{
this.GetComponentsInternal(typeof(T), false, false, true, false, results);
}
// Token: 0x06000472 RID: 1138 RVA: 0x00007904 File Offset: 0x00005B04
[ExcludeFromDocs]
public Component[] GetComponentsInChildren(Type type)
{
bool flag = false;
return this.GetComponentsInChildren(type, flag);
}
// Token: 0x06000473 RID: 1139 RVA: 0x00007924 File Offset: 0x00005B24
public Component[] GetComponentsInChildren(Type type, [DefaultValue("false")] bool includeInactive)
{
return (Component[])this.GetComponentsInternal(type, false, true, includeInactive, false, null);
}
// Token: 0x06000474 RID: 1140 RVA: 0x0000794C File Offset: 0x00005B4C
public T[] GetComponentsInChildren<T>(bool includeInactive)
{
return (T[])this.GetComponentsInternal(typeof(T), true, true, includeInactive, false, null);
}
// Token: 0x06000475 RID: 1141 RVA: 0x0000797C File Offset: 0x00005B7C
public void GetComponentsInChildren<T>(bool includeInactive, List<T> results)
{
this.GetComponentsInternal(typeof(T), true, true, includeInactive, false, results);
}
// Token: 0x06000476 RID: 1142 RVA: 0x00007998 File Offset: 0x00005B98
public T[] GetComponentsInChildren<T>()
{
return this.GetComponentsInChildren<T>(false);
}
// Token: 0x06000477 RID: 1143 RVA: 0x000079B4 File Offset: 0x00005BB4
public void GetComponentsInChildren<T>(List<T> results)
{
this.GetComponentsInChildren<T>(false, results);
}
// Token: 0x06000478 RID: 1144 RVA: 0x000079C0 File Offset: 0x00005BC0
[ExcludeFromDocs]
public Component[] GetComponentsInParent(Type type)
{
bool flag = false;
return this.GetComponentsInParent(type, flag);
}
// Token: 0x06000479 RID: 1145 RVA: 0x000079E0 File Offset: 0x00005BE0
public Component[] GetComponentsInParent(Type type, [DefaultValue("false")] bool includeInactive)
{
return (Component[])this.GetComponentsInternal(type, false, true, includeInactive, true, null);
}
// Token: 0x0600047A RID: 1146 RVA: 0x00007A08 File Offset: 0x00005C08
public void GetComponentsInParent<T>(bool includeInactive, List<T> results)
{
this.GetComponentsInternal(typeof(T), true, true, includeInactive, true, results);
}
// Token: 0x0600047B RID: 1147 RVA: 0x00007A24 File Offset: 0x00005C24
public T[] GetComponentsInParent<T>(bool includeInactive)
{
return (T[])this.GetComponentsInternal(typeof(T), true, true, includeInactive, true, null);
}
// Token: 0x0600047C RID: 1148 RVA: 0x00007A54 File Offset: 0x00005C54
public T[] GetComponentsInParent<T>()
{
return this.GetComponentsInParent<T>(false);
}
// Token: 0x0600047D RID: 1149
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Array GetComponentsInternal(Type type, bool useSearchTypeAsArrayReturnType, bool recursive, bool includeInactive, bool reverse, object resultList);
// Token: 0x0600047E RID: 1150
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern Component AddComponentInternal(string className);
// Token: 0x170000E7 RID: 231
// (get) Token: 0x0600047F RID: 1151
public extern Transform transform
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170000E8 RID: 232
// (get) Token: 0x06000480 RID: 1152
// (set) Token: 0x06000481 RID: 1153
public extern int layer
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170000E9 RID: 233
// (get) Token: 0x06000482 RID: 1154
// (set) Token: 0x06000483 RID: 1155
[Obsolete("GameObject.active is obsolete. Use GameObject.SetActive(), GameObject.activeSelf or GameObject.activeInHierarchy.")]
public extern bool active
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x06000484 RID: 1156
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetActive(bool value);
// Token: 0x170000EA RID: 234
// (get) Token: 0x06000485 RID: 1157
public extern bool activeSelf
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170000EB RID: 235
// (get) Token: 0x06000486 RID: 1158
public extern bool activeInHierarchy
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x06000487 RID: 1159
[Obsolete("gameObject.SetActiveRecursively() is obsolete. Use GameObject.SetActive(), which is now inherited by children.")]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetActiveRecursively(bool state);
// Token: 0x170000EC RID: 236
// (get) Token: 0x06000488 RID: 1160
// (set) Token: 0x06000489 RID: 1161
public extern bool isStatic
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170000ED RID: 237
// (get) Token: 0x0600048A RID: 1162
internal extern bool isStaticBatchable
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x170000EE RID: 238
// (get) Token: 0x0600048B RID: 1163
// (set) Token: 0x0600048C RID: 1164
public extern string tag
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x0600048D RID: 1165
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool CompareTag(string tag);
// Token: 0x0600048E RID: 1166
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern GameObject FindGameObjectWithTag(string tag);
// Token: 0x0600048F RID: 1167 RVA: 0x00007A70 File Offset: 0x00005C70
public static GameObject FindWithTag(string tag)
{
return GameObject.FindGameObjectWithTag(tag);
}
// Token: 0x06000490 RID: 1168
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern GameObject[] FindGameObjectsWithTag(string tag);
// Token: 0x06000491 RID: 1169
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SendMessageUpwards(string methodName, [DefaultValue("null")] object value, [DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options);
// Token: 0x06000492 RID: 1170 RVA: 0x00007A8C File Offset: 0x00005C8C
[ExcludeFromDocs]
public void SendMessageUpwards(string methodName, object value)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
this.SendMessageUpwards(methodName, value, sendMessageOptions);
}
// Token: 0x06000493 RID: 1171 RVA: 0x00007AA8 File Offset: 0x00005CA8
[ExcludeFromDocs]
public void SendMessageUpwards(string methodName)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
object obj = null;
this.SendMessageUpwards(methodName, obj, sendMessageOptions);
}
// Token: 0x06000494 RID: 1172 RVA: 0x00007AC4 File Offset: 0x00005CC4
public void SendMessageUpwards(string methodName, SendMessageOptions options)
{
this.SendMessageUpwards(methodName, null, options);
}
// Token: 0x06000495 RID: 1173
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SendMessage(string methodName, [DefaultValue("null")] object value, [DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options);
// Token: 0x06000496 RID: 1174 RVA: 0x00007AD0 File Offset: 0x00005CD0
[ExcludeFromDocs]
public void SendMessage(string methodName, object value)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
this.SendMessage(methodName, value, sendMessageOptions);
}
// Token: 0x06000497 RID: 1175 RVA: 0x00007AEC File Offset: 0x00005CEC
[ExcludeFromDocs]
public void SendMessage(string methodName)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
object obj = null;
this.SendMessage(methodName, obj, sendMessageOptions);
}
// Token: 0x06000498 RID: 1176 RVA: 0x00007B08 File Offset: 0x00005D08
public void SendMessage(string methodName, SendMessageOptions options)
{
this.SendMessage(methodName, null, options);
}
// Token: 0x06000499 RID: 1177
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void BroadcastMessage(string methodName, [DefaultValue("null")] object parameter, [DefaultValue("SendMessageOptions.RequireReceiver")] SendMessageOptions options);
// Token: 0x0600049A RID: 1178 RVA: 0x00007B14 File Offset: 0x00005D14
[ExcludeFromDocs]
public void BroadcastMessage(string methodName, object parameter)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
this.BroadcastMessage(methodName, parameter, sendMessageOptions);
}
// Token: 0x0600049B RID: 1179 RVA: 0x00007B30 File Offset: 0x00005D30
[ExcludeFromDocs]
public void BroadcastMessage(string methodName)
{
SendMessageOptions sendMessageOptions = SendMessageOptions.RequireReceiver;
object obj = null;
this.BroadcastMessage(methodName, obj, sendMessageOptions);
}
// Token: 0x0600049C RID: 1180 RVA: 0x00007B4C File Offset: 0x00005D4C
public void BroadcastMessage(string methodName, SendMessageOptions options)
{
this.BroadcastMessage(methodName, null, options);
}
// Token: 0x0600049D RID: 1181
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Component Internal_AddComponentWithType(Type componentType);
// Token: 0x0600049E RID: 1182 RVA: 0x00007B58 File Offset: 0x00005D58
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public Component AddComponent(Type componentType)
{
return this.Internal_AddComponentWithType(componentType);
}
// Token: 0x0600049F RID: 1183 RVA: 0x00007B74 File Offset: 0x00005D74
public T AddComponent<T>() where T : Component
{
return this.AddComponent(typeof(T)) as T;
}
// Token: 0x060004A0 RID: 1184
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_CreateGameObject([Writable] GameObject mono, string name);
// Token: 0x060004A1 RID: 1185
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern GameObject Find(string name);
// Token: 0x170000EF RID: 239
// (get) Token: 0x060004A2 RID: 1186 RVA: 0x00007BA4 File Offset: 0x00005DA4
public Scene scene
{
get
{
Scene scene;
this.INTERNAL_get_scene(out scene);
return scene;
}
}
// Token: 0x060004A3 RID: 1187
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void INTERNAL_get_scene(out Scene value);
// Token: 0x170000F0 RID: 240
// (get) Token: 0x060004A4 RID: 1188 RVA: 0x00007BC4 File Offset: 0x00005DC4
public GameObject gameObject
{
get
{
return this;
}
}
}
}