18 lines
370 B
GDScript
18 lines
370 B
GDScript
extends GPUParticles2D
|
|
|
|
@export var size: Vector3
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
process_material.emission_box_extents = size
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _on_mouse_entered():
|
|
emitting = true
|
|
|
|
func _on_mouse_exited():
|
|
emitting = false
|