99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000044 RID: 68
|
|
[RequiredByNativeCode]
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class Gradient
|
|
{
|
|
// Token: 0x060004D8 RID: 1240 RVA: 0x00007F80 File Offset: 0x00006180
|
|
[RequiredByNativeCode]
|
|
public Gradient()
|
|
{
|
|
this.Init();
|
|
}
|
|
|
|
// Token: 0x060004D9 RID: 1241
|
|
[ThreadAndSerializationSafe]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void Init();
|
|
|
|
// Token: 0x060004DA RID: 1242
|
|
[ThreadAndSerializationSafe]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void Cleanup();
|
|
|
|
// Token: 0x060004DB RID: 1243 RVA: 0x00007F90 File Offset: 0x00006190
|
|
~Gradient()
|
|
{
|
|
this.Cleanup();
|
|
}
|
|
|
|
// Token: 0x060004DC RID: 1244 RVA: 0x00007FC0 File Offset: 0x000061C0
|
|
public Color Evaluate(float time)
|
|
{
|
|
Color color;
|
|
Gradient.INTERNAL_CALL_Evaluate(this, time, out color);
|
|
return color;
|
|
}
|
|
|
|
// Token: 0x060004DD RID: 1245
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Evaluate(Gradient self, float time, out Color value);
|
|
|
|
// Token: 0x170000F3 RID: 243
|
|
// (get) Token: 0x060004DE RID: 1246
|
|
// (set) Token: 0x060004DF RID: 1247
|
|
public extern GradientColorKey[] colorKeys
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170000F4 RID: 244
|
|
// (get) Token: 0x060004E0 RID: 1248
|
|
// (set) Token: 0x060004E1 RID: 1249
|
|
public extern GradientAlphaKey[] alphaKeys
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x170000F5 RID: 245
|
|
// (get) Token: 0x060004E2 RID: 1250
|
|
// (set) Token: 0x060004E3 RID: 1251
|
|
public extern GradientMode mode
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x060004E4 RID: 1252
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetKeys(GradientColorKey[] colorKeys, GradientAlphaKey[] alphaKeys);
|
|
|
|
// Token: 0x04000064 RID: 100
|
|
internal IntPtr m_Ptr;
|
|
}
|
|
}
|