This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
magician/cards/playing_card.gd
T

13 lines
325 B
GDScript
Raw Normal View History

2025-07-08 11:32:52 +02:00
class_name PlayingCard
extends StaticBody3D
@export var card_mesh: MeshInstance3D
@export var front_texture: Texture
var card_details: Card
func _ready() -> void:
set_front_texture(front_texture)
func set_front_texture(texture: Texture) -> void:
card_mesh.get_surface_override_material(0).albedo_texture = front_texture