DotweePathについて質問です・
Tweenしたいオブジェクトに下記をアタッチしています。
1度目は問題なく再生されますが、2度目が再生されません
tw.Kill();が悪いのかとtw.Kill();をコメントアウトしてみましたが状況は変わりません。
また、tw.timeScale = 0.5f;を有効にすると下記のワーニングがでます。
DOTWEEN ► </b></color>An error inside a tween callback was silently taken care of (Void TwStart()) ► Object reference not set to an instance of an object
ご存知の方は情報提供頂ければ確かります。
en tw; void Start() { TwStart(); } void TwStart() { DOTween.Init(); tw = this.GetComponent<DOTweenPath>().GetTween(); tw.SetSpeedBased(true); //tw.timeScale = 0.5f; tw.Play(); } public void TwComplated() { tw.Kill(); TwStart();
宜しくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。