# Create Texture2D

<figure><img src="https://2045186817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FprZDZ78gPEd6jpqrKM56%2Fuploads%2Fp4jNfg0ZnspFtOy0KW4z%2Fimage.png?alt=media&#x26;token=27d47713-982d-412e-84d3-58566ad4f1d6" alt=""><figcaption></figcaption></figure>

## 📄 <mark style="color:yellow;">Description</mark>

This node creates a Texture2D based on the inputted data.

<mark style="background-color:purple;">**The first way**</mark> to create the needed data is by inputting your own data. In this case, you can use the "Make Shape Information" node. The way this works is by putting your desired size which should be generated and the color information in the form of an array into the "Make Shape Information" node and connecting it to the "Create Texture2D" node. The following image shows the sequence of how the inputted Array gets read:

<figure><img src="https://2045186817-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FprZDZ78gPEd6jpqrKM56%2Fuploads%2FMMenzJ2d9vdfLrsUFwiW%2Fimage.png?alt=media&#x26;token=c0a3a235-08ff-4290-a04d-508b2bb25d21" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you have an image with a small number of pixels it will get blurry as Unreal Engine handles small images like that.
{% endhint %}

Example: If you want to generate a Texture2D in which the first line is red, the second is blue and the third is green in an size of 3x3 pixels you would need to input following: SizeX = 3, SizeY = 3, FColor Array = \[0], \[1] & \[2] => Red; \[3], \[4] & \[5] => Blue; \[6], \[7] & \[8] => Green

***

<mark style="background-color:purple;">**The second way**</mark> to create the data for the input is by using the “Read Texture2D” node. This node reads a Texture2D and outputs the needed information. You can tweak that information by for example looping through the arrays and changing some values. You can also draw something onto it by using the “Combine Shapes” node. More information on that is down below.

***

<mark style="background-color:purple;">**The third way**</mark> to get the needed information to create a Texture2D is by using the “Create Rectangle Shape”, “Create Circle Shape” and the “Combine Shapes” node. You can use all nodes alone or combine them to generate a picture. You can even draw for example a circle onto an already existing Texture2D. More information is down below in the specific section.

{% tabs %}
{% tab title="Inputs" %}

<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Input Informations</strong></td><td></td></tr></tbody></table>
{% endtab %}

{% tab title="Outputs" %}

<table><thead><tr><th width="200">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Return Value</strong></td><td></td></tr></tbody></table>
{% endtab %}
{% endtabs %}
