Files
2026-06-04 11:42:34 +02:00

60 lines
1.8 KiB
C#

using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x0200001D RID: 29
[RequiredByNativeCode]
[StructLayout(LayoutKind.Sequential)]
public class ScriptableObject : Object
{
// Token: 0x060001FD RID: 509 RVA: 0x00005234 File Offset: 0x00003434
public ScriptableObject()
{
ScriptableObject.Internal_CreateScriptableObject(this);
}
// Token: 0x060001FE RID: 510
[ThreadAndSerializationSafe]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_CreateScriptableObject([Writable] ScriptableObject self);
// Token: 0x060001FF RID: 511 RVA: 0x00005244 File Offset: 0x00003444
[Obsolete("Use EditorUtility.SetDirty instead")]
public void SetDirty()
{
ScriptableObject.INTERNAL_CALL_SetDirty(this);
}
// Token: 0x06000200 RID: 512
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetDirty(ScriptableObject self);
// Token: 0x06000201 RID: 513
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern ScriptableObject CreateInstance(string className);
// Token: 0x06000202 RID: 514 RVA: 0x00005250 File Offset: 0x00003450
public static ScriptableObject CreateInstance(Type type)
{
return ScriptableObject.CreateInstanceFromType(type);
}
// Token: 0x06000203 RID: 515
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern ScriptableObject CreateInstanceFromType(Type type);
// Token: 0x06000204 RID: 516 RVA: 0x0000526C File Offset: 0x0000346C
public static T CreateInstance<T>() where T : ScriptableObject
{
return (T)((object)ScriptableObject.CreateInstance(typeof(T)));
}
}
}