LH Project Work Notes Notes on Texcorrd 1-2

1. Realize the effect

In order to simulate the effect of switching the value of a roller up and down. If the model is used for performance, only the displacement or rotation angle needs to be controlled.

If you want to use UMG to implement. The scale part needs to use a material to achieve.

The core idea:

In the above vertical picture, we only need to control its movement up and down to simulate the change effect of the scale.

Create a material for this graph, ----- for the type of UI.

After calling TexCoord, you need to use Mask R and Mask G to add values ​​in two directions respectively.

Because we don’t need all the values ​​of add after mask R to be 0 in the horizontal direction; the value added after mask G is between (-1,1). finally append 

Here is a point to note: At first we thought we only needed to move the Y direction, so we only called mask G, but it turned out that the graphics were deformed. After finally adding mask R, everything is normal.

So, although you don't use it, you still need to call it.

 

Guess you like

Origin blog.csdn.net/gaofei7439/article/details/119829954