# Generate On Trigger Stay Events

[Physics](index.md) / **Generate On Trigger Stay Events**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Generate On Trigger Stay Events static property of the Physics 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("Generate On Trigger Stay Events")]
    [Category("Physics/Generate On Trigger Stay Events")]
    [Description("The Generate On Trigger Stay Events static property of the Physics class")]

    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]

    [Serializable]
    public class GenTypeBool_Physics_GenerateOnTriggerStayEvents : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return Physics.generateOnTriggerStayEvents;
        }

        public override bool Get(Args args)
        {
            return Physics.generateOnTriggerStayEvents;
        }

        public override string ToString()
        {
            return $"Physics Generate On Trigger Stay Events";
        }

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

