Skip to content

Commit

Permalink
fix titles
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Earnshaw <[email protected]>
  • Loading branch information
nearnshaw authored Jan 16, 2025
1 parent 71b48d0 commit e3f78b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/creator/sdk7/3d-essentials/materials.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Material.setPbrMaterial(myEntity, {
})
```

### Texture tweens
### Texture tweens

Make a texture slide smoothly by using a `Tween` component, set up with the `TextureMove` mode. The tween gradually changes the value of the `offset` or the `tiling` properties of a texture over a period of time, in a smooth and optimized way.

Expand Down Expand Up @@ -296,7 +296,7 @@ TweenSequence.create(myEntity, { sequence: [], loop: TweenLoop.TL_RESTART })

The example above sets the `loop` mode to `TweenLoop.TL_RESTART`, which makes the same transition repeat continuously. You can also set the `loop`mode to `TweenLoop.TL_YOYO` to alternate back and forth in the opposite direction.

#### Complex tween sequences
#### Complex tween sequences

You can also make the texture movements follow a complex sequence with as many steps as you want. Use the `sequence` field to list as many tweens as you want, they will be executed sequentially after the first tween described on the `Tween` component.

Expand Down

0 comments on commit e3f78b0

Please sign in to comment.