# Layer Connections

Layer connections are a tool to share data and content between Layer variables in different layers. They present a more streamlined way to do that compared to [Global variables](https://docs.lightact.com/layers-and-layouts/layer-layouts/variables/global-variables).

In most cases you will be using Layer connections to pass textures from one layer to another, so let's demonstrate how this can be done.

## Example: Scroll texture

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fz5W5w7BQRFv2CqFIOmvc%2Fimage.png?alt=media&#x26;token=1e73efa3-fb10-4c09-9735-e3f661eca458" alt=""><figcaption></figcaption></figure></div>

Create a:

1. **Video screen** in the Viewport
2. **Color grid** layer and
3. above it a **Scroll texture** layer

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FBjSgRFiCyU1rKdDLTzMP%2FlayerConnectionCreatingWithDragging.gif?alt=media&#x26;token=345f6a19-cb26-4aca-906e-6a2f0456ce9a" alt=""><figcaption></figcaption></figure>

Then:

1. **drag** from the Video screen to Scroll texture layer.
2. **Alt + drag** from Color grid layer to Scroll texture layer

You've just created a layer connection. It copies the Texture variable from Color grid layer to Texture variable to Scroll texture.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Ftk13SirA3nBzLgLrPGPv%2Fimage.png?alt=media&#x26;token=022837ad-c187-49de-8cbd-2867cc9fe2b8" alt=""><figcaption></figcaption></figure></div>

Now open **Layer connections** window. You can find it in the **Window** top menu. In this window you can see a Table with 2 columns:&#x20;

* **Source**: with 3 sub-columns you set the *source variable*
* **Destination**: with 3 sub-columns you set the *destination variable*

{% hint style="info" %}
**Good to know**: by Alt-dragging from one layer to another you create a layer connection between 2 layers that copies **all Texture** variables from the Source layer to all Texture variables of the Destination layer.
{% endhint %}

{% hint style="info" %}
**Good to know**: to create layer connections of **non-texture** variables, you need to use Layer connections.
{% endhint %}

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FjX5hVM14faXbW9rbAfIT%2Fimage.png?alt=media&#x26;token=5fa4fb82-a79b-4aa6-9dff-0dc1c1d630fc" alt=""><figcaption></figcaption></figure></div>

If you want to temporarily disable a Layer connection just click on the eye icon in Layer connections window.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FOB7F9mIMk5AGNsHYw7xy%2Fimage.png?alt=media&#x26;token=56faf2a7-03f2-48f1-bae0-09d74dba06fb" alt=""><figcaption></figcaption></figure></div>

If you want to delete a Layer connection you can do that in Layer connection window or by right clicking on one of the layers and selecting **Delete layer connections**.
