Material Box

Material Box

WEBデザイン & フリー素材

Godot - Tweenを削除する

Godot

Tweenを削除するGDScriptのコード例です。


kill()は停止中や再生中のTweenを削除する事が可能です。
再生中の場合は、即時停止しTweenを削除します。
kill()にて削除されたTweenは再設定するまで再度利用する事ができません。

var tween = create_tween().set_loops()
tween.tween_property(self, "modulate", Color( 1, 1, 1, 0), 0.5)
tween.tween_property(self, "modulate", Color( 1, 1, 1, 1), 0.5).set_delay(0.5)
tween.play()

tween.kill()

Godot

TitleGodot - Tweenを削除する

CategoryGodot

Created

Update

AuthorYousuke.U