# Sprite Shape Renderer Get Spline Mesh Count

[Miscellaneous](../index.md) / [Sprite Shape Renderer](index.md) / **Sprite Shape Renderer Get Spline Mesh Count**

## Description

Compares the Get Spline Mesh Count method of Sprite Shape Renderer component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Sprite Shape Renderer |  |
| Compare |  |
| Value |  |

## 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;
using UnityEngine.U2D;

namespace VisualScript.Runtime
{
    [Title("Sprite Shape Renderer Get Spline Mesh Count")]
    [Category("Miscellaneous/Sprite Shape Renderer/Get Spline Mesh Count")]
    [Description("Compares the Get Spline Mesh Count method of Sprite Shape Renderer component to another value")]
    
    [Image(typeof(IconSprite), ColorTheme.Type.Purple, typeof(BadgeEye))]
    
    [Parameter("Sprite Shape Renderer")]
    [Parameter("Compare")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionInteger_SpriteShapeRenderer_CheckGetSplineMeshCount_0 : Condition
    {
        [SerializeField] private GetGameObject m_SpriteShapeRenderer = new GetGameObject(
            new GenTypeGameObject_SpriteShapeRenderer()
        );
        
        [SerializeField] private CompareNumber m_Compare = new CompareNumber();
        
        [SerializeField] private GetInteger m_Value = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Get Spline Mesh Count");
            string parameters = $"()";
            return $"{this.m_SpriteShapeRenderer} {method} {this.m_Compare} {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            SpriteShapeRenderer component = this.m_SpriteShapeRenderer.Get<SpriteShapeRenderer>(args);
            if (component == null) return false;
            
            int value = component.GetSplineMeshCount();
            
            return this.m_Compare.Compare(value, (int) this.m_Value.Get(args));
        }
    }
}


```

