mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
14 lines
354 B
C#
14 lines
354 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using DG.Tweening;
|
|
|
|
public class TextureTilingAndOffset : BrainBase
|
|
{
|
|
public Renderer rend;
|
|
|
|
void Start()
|
|
{
|
|
rend.material.DOTiling(new Vector2(3, 3), 2).SetLoops(-1, LoopType.Yoyo);
|
|
rend.material.DOOffset(new Vector2(1, 0), "_Detail", 2).SetEase(Ease.Linear).SetLoops(-1, LoopType.Incremental);
|
|
}
|
|
} |