scripts
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x020002A3 RID: 675
|
||||
public static class JsonUtility
|
||||
{
|
||||
// Token: 0x06002DB0 RID: 11696 RVA: 0x00041498 File Offset: 0x0003F698
|
||||
public static string ToJson(object obj)
|
||||
{
|
||||
return JsonUtility.ToJson(obj, false);
|
||||
}
|
||||
|
||||
// Token: 0x06002DB1 RID: 11697
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern string ToJson(object obj, bool prettyPrint);
|
||||
|
||||
// Token: 0x06002DB2 RID: 11698 RVA: 0x000414B4 File Offset: 0x0003F6B4
|
||||
public static T FromJson<T>(string json)
|
||||
{
|
||||
return (T)((object)JsonUtility.FromJson(json, typeof(T)));
|
||||
}
|
||||
|
||||
// Token: 0x06002DB3 RID: 11699
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern object FromJson(string json, Type type);
|
||||
|
||||
// Token: 0x06002DB4 RID: 11700
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void FromJsonOverwrite(string json, object objectToOverwrite);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user