Files
seeding-planets/entities/plants/scripts/test_seeds.gd

14 lines
275 B
GDScript

@tool
extends PlantTextureBuilderInstance
@export var hash : int = 0 :
set(v):
hash = v
update_seed_sprite()
func _ready():
update_seed_sprite()
func update_seed_sprite():
if is_node_ready():
%Sprite2D.texture = build_seed_texture(hash)