# StartUp(Vector3Int, ITilemap, GameObject)

> StartUp is called on the first frame of the running Scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.7/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
public virtual bool StartUp(Vector3Int position, ITilemap tilemap, GameObject go)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.7/script-reference/unityengine/vector3int)): Position of the Tile on the [Tilemap](/engine/6000.7/script-reference/unityengine/tilemaps/tilemap.md).**** (\[ITilemap]\(/engine/6000.7/script-reference/unityengine/tilemaps/itilemap)): The [Tilemap](/engine/6000.7/script-reference/unityengine/tilemaps/tilemap.md) the tile is present on.**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): The [GameObject](/engine/6000.7/script-reference/unityengine/gameobject.md) instantiated for the Tile.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the call was successful. |

### Remarks

Use this to set values for the instantiated [GameObject](/engine/6000.7/script-reference/unityengine/gameobject.md) or run any logic at the beginning of the Scene.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Tilemaps;

 // Tile that instantiates a GameObject on Start and assigns a random rotation to the instanced GameObject
[CreateAssetMenu]
public class RandomRotationStartupTile : TileBase
{
    public Sprite m_Sprite;
    public GameObject m_Prefab;

    public override void GetTileData(Vector3Int location, ITilemap tilemap, ref TileData tileData)
    {
        tileData.sprite = m_Sprite;
        tileData.gameObject = m_Prefab;
    }

    public override bool StartUp(Vector3Int location, ITilemap tilemap, GameObject go)
    {
        if (go != null)
        {
            go.transform.rotation = Random.rotation;
        }
        return true;
    }
}
```
