godot-plateformer/addons/reedfx/vfx/VFXLayer.gd

14 lines
374 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'''此类会在插件被启用时自动加入ProjectSetting用来播放特效。
所有的特效组件都会被放置于VFX Layer之下且被添加入ReedVFX这个组
'''
@tool
class_name ReedVFXLayer
extends CanvasLayer
func _enter_tree() -> void:
_add_to_vfx_group()
func _add_to_vfx_group() -> void:
if not is_in_group("ReedVFX"):
add_to_group("ReedVFX")