94 lines
2.8 KiB
C#
94 lines
2.8 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Internal;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x0200018C RID: 396
|
|
public sealed class PolygonCollider2D : Collider2D
|
|
{
|
|
// Token: 0x17000688 RID: 1672
|
|
// (get) Token: 0x06001E0D RID: 7693
|
|
// (set) Token: 0x06001E0E RID: 7694
|
|
public extern Vector2[] points
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001E0F RID: 7695
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern Vector2[] GetPath(int index);
|
|
|
|
// Token: 0x06001E10 RID: 7696
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void SetPath(int index, Vector2[] points);
|
|
|
|
// Token: 0x17000689 RID: 1673
|
|
// (get) Token: 0x06001E11 RID: 7697
|
|
// (set) Token: 0x06001E12 RID: 7698
|
|
public extern int pathCount
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06001E13 RID: 7699
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern int GetTotalPointCount();
|
|
|
|
// Token: 0x06001E14 RID: 7700 RVA: 0x000251C0 File Offset: 0x000233C0
|
|
public void CreatePrimitive(int sides, [DefaultValue("Vector2.one")] Vector2 scale, [DefaultValue("Vector2.zero")] Vector2 offset)
|
|
{
|
|
PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref scale, ref offset);
|
|
}
|
|
|
|
// Token: 0x06001E15 RID: 7701 RVA: 0x000251D0 File Offset: 0x000233D0
|
|
[ExcludeFromDocs]
|
|
public void CreatePrimitive(int sides, Vector2 scale)
|
|
{
|
|
Vector2 zero = Vector2.zero;
|
|
PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref scale, ref zero);
|
|
}
|
|
|
|
// Token: 0x06001E16 RID: 7702 RVA: 0x000251F0 File Offset: 0x000233F0
|
|
[ExcludeFromDocs]
|
|
public void CreatePrimitive(int sides)
|
|
{
|
|
Vector2 zero = Vector2.zero;
|
|
Vector2 one = Vector2.one;
|
|
PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref one, ref zero);
|
|
}
|
|
|
|
// Token: 0x06001E17 RID: 7703
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_CreatePrimitive(PolygonCollider2D self, int sides, ref Vector2 scale, ref Vector2 offset);
|
|
|
|
// Token: 0x1700068A RID: 1674
|
|
// (get) Token: 0x06001E18 RID: 7704
|
|
// (set) Token: 0x06001E19 RID: 7705
|
|
public extern bool autoTiling
|
|
{
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
get;
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
set;
|
|
}
|
|
}
|
|
}
|