using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200051B RID: 1307
	public sealed class TrackballAttribute : PropertyAttribute
	{
		// Token: 0x06009335 RID: 37685 RVA: 0x0025E9E4 File Offset: 0x0025CBE4
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 145492, RefRangeEnd = 145494, XrefRangeStart = 145492, XrefRangeEnd = 145494, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TrackballAttribute(string method)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(method);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TrackballAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009336 RID: 37686 RVA: 0x0025EA48 File Offset: 0x0025CC48
		// Note: this type is marked as 'beforefieldinit'.
		static TrackballAttribute()
		{
			Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "TrackballAttribute");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr);
			TrackballAttribute.NativeFieldInfoPtr_method = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr, "method");
			TrackballAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr, 100674779);
		}

		// Token: 0x06009337 RID: 37687 RVA: 0x001CF3DC File Offset: 0x001CD5DC
		public TrackballAttribute(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170031C7 RID: 12743
		// (get) Token: 0x06009338 RID: 37688 RVA: 0x0025EAA0 File Offset: 0x0025CCA0
		// (set) Token: 0x06009339 RID: 37689 RVA: 0x0025EAC9 File Offset: 0x0025CCC9
		public unsafe string method
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TrackballAttribute.NativeFieldInfoPtr_method);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TrackballAttribute.NativeFieldInfoPtr_method), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x0400623B RID: 25147
		private static readonly IntPtr NativeFieldInfoPtr_method;

		// Token: 0x0400623C RID: 25148
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;
	}
}
