🏗️Create Texture2D

📄 Description

This node creates a Texture2D based on the inputted data.

The first way 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:

If you have an image with a small number of pixels it will get blurry as Unreal Engine handles small images like that.

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


The second way 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.


The third way 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.

Name
Description

Input Informations

Last updated