---
tags:
    - "Tick"
    - "Clock"
    - "Every"
    - "Frame"
---

# On Update

[Component](index.md) / **On Update**

## Description

Executes every frame

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("On Update")]
    [Image(typeof(IconUpdate), ColorTheme.Type.Blue, typeof(Badge1))]
    
    [Description("Executes every frame")]
    [Category("Component/On Update")]
    
    [Keywords("Tick", "Clock", "Every", "Frame")]

    [Serializable]
    public class TriggerCoreUpdate : TriggerHandleSubscriptionBase<HandleUpdate>
    {
        protected override string GetTitle(GameObject source) => "Update";

        protected override void OnTrigger(GameObject target)
        {
            using Args args = Args.Get(this.Component, target);
            this.Run(args);
        }
    }
}
```

