# Is Static

[Game Object](index.md) / **Is Static**

## Description

Returns true if the Game Object has any active Static flags

## Parameters

| Name | Description |
| :--- | :---------- |
| Game Object | The Game Object targeted |

## Code

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

namespace VisualScript.Runtime
{
    [Title("Is Static")]
    [Image(typeof(IconAnchor), ColorTheme.Type.TextLight)]

    [Description("Returns true if the Game Object has any active Static flags")]
    [Category("Game Object/Is Static")]
    
    [Parameter("Game Object", "The Game Object targeted")]
    
    [Serializable]
    public class ConditionCoreGameObjectCompareIsStatic : Condition
    {
        [SerializeField] private GetGameObject m_GameObject = new GetGameObject();

        protected override string GetTitle(GameObject source) => $"{this.m_GameObject} is Static";

        protected override bool Run(Args args)
        {
            GameObject gameObject = this.m_GameObject.Get(args);
            return gameObject != null && gameObject.isStatic;
        }
    }
}
```

