---
tags:
    - "Effect"
---

# Set Trail Renderer Num Corner Vertices

[Effects](../index.md) / [Trail Renderer](index.md) / **Set Trail Renderer Num Corner Vertices**

## Description

Sets the Num Corner Vertices property of Trail Renderer component

## Parameters

| Name | Description |
| :--- | :---------- |
| Trail Renderer |  |
| 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;

namespace VisualScript.Runtime
{
    [Title("Set Trail Renderer Num Corner Vertices")]
    [Category("Effects/Trail Renderer/Num Corner Vertices")]
    [Description("Sets the Num Corner Vertices property of Trail Renderer component")]
    
    [Image(typeof(IconTrailRenderer), ColorTheme.Type.Blue, typeof(BadgeEye))]
    [Keywords("Effect")]
    
    [Parameter("Trail Renderer")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionInteger_TrailRenderer_SetNumCornerVertices : Instruction
    {
        [SerializeField] private GetGameObject m_TrailRenderer = new GetGameObject(
            new GenTypeGameObject_TrailRenderer()
        );
        
        [SerializeField] private GetInteger m_Value = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Num Corner Vertices");
            return $"{this.m_TrailRenderer} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            TrailRenderer component = this.m_TrailRenderer.Get<TrailRenderer>(args);
            if (component == null) return Done;
            
            component.numCornerVertices = (int) this.m_Value.Get(args);
            
            return Done;
        }
    }
}


```

