# LightmapStatic

> Include the GameObject when precomputing lighting data.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** Enum member StaticEditorFlags.LightmapStatic has been deprecated. Use StaticEditorFlags.ContributeGI instead.
>
> **Upgrade to** [StaticEditorFlags.ContributeGI](/engine/6000.6/script-reference/unityeditor/staticeditorflags/contributegi.md)

```csharp
LightmapStatic = 1
```

### Remarks

For more information on precomputed lighting, see the documentation on [the Lighting system](/engine/6000.6/manual/lighting-overview.md).

```csharp
using UnityEngine;
using UnityEditor;
public class StaticEditorFlagsExample
{
    [MenuItem("Examples/Create GameObject and set Static Editor Flags")]
    static void CreateGameObjectAndSetStaticEditorFlags()
    {
        // Create a GameObject
        var go = new GameObject("Example");
        // Set the GameObject's StaticEditorFlags
        var flags = StaticEditorFlags.LightmapStatic;
        GameObjectUtility.SetStaticEditorFlags(go, flags);
    }
}
```

Additional Resources: [GameObjectUtility.SetStaticEditorFlags](/engine/6000.6/script-reference/unityeditor/gameobjectutility/setstaticeditorflags.md), [GameObject.isStatic](/engine/6000.6/script-reference/unityengine/gameobject/isstatic.md)
