# AreStaticEditorFlagsSet(GameObject, StaticEditorFlags)

> Returns true if the passed in StaticEditorFlags are set on the GameObject specified.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static bool AreStaticEditorFlagsSet(GameObject go, StaticEditorFlags flags)
```

### Parameters

**** (\[GameObject]\(/engine/6000.0/script-reference/unityengine/gameobject)): The GameObject to check.**** (\[StaticEditorFlags]\(/engine/6000.0/script-reference/unityeditor/staticeditorflags)): The flags you want to check.

### Returns

| Type                                                          | Description                                                      |
| ------------------------------------------------------------- | ---------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the GameObject's static flags match the flags specified. |
