---
tags:
    - "Physics, 2D"
---

# Max Polygon Shape Vertices

[Physics 2D](index.md) / **Max Polygon Shape Vertices**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Max Polygon Shape Vertices static field of the Physics 2D class

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Max Polygon Shape Vertices")]
    [Category("Physics 2D/Max Polygon Shape Vertices")]
    [Description("The Max Polygon Shape Vertices static field of the Physics 2D class")]

    [Image(typeof(IconPhysics), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]

    [Serializable]
    public class GenTypeInteger_Physics2D_MaxPolygonShapeVertices : TypeNumber
    {

        public override double GetPreview(GameObject source)
        {
            return Physics2D.MaxPolygonShapeVertices;
        }

        public override double Get(Args args)
        {
            return Physics2D.MaxPolygonShapeVertices;
        }

        public override string ToString()
        {
            return $"Physics 2D Max Polygon Shape Vertices";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
```

