2026-05-16 19:18:27 +02:00
|
|
|
@tool
|
|
|
|
|
extends Node3D
|
2021-05-25 16:44:55 +02:00
|
|
|
|
2026-05-16 19:18:27 +02:00
|
|
|
@export var paper: bool
|
2021-05-25 16:44:55 +02:00
|
|
|
|
|
|
|
|
func activatePaper(showPaper):
|
2026-05-16 19:18:27 +02:00
|
|
|
if Engine.is_editor_hint():
|
2021-05-25 16:44:55 +02:00
|
|
|
paper = showPaper
|
2021-05-25 19:24:19 +02:00
|
|
|
|
2021-06-06 16:54:38 +02:00
|
|
|
# var parent = get_node(".").name
|
|
|
|
|
# print("[Parchment] Editor value " +String(showPaper) +" | " +String(parent))
|
2021-05-25 19:24:19 +02:00
|
|
|
|
|
|
|
|
$paper.set_visible(paper)
|
|
|
|
|
|
2021-05-25 16:44:55 +02:00
|
|
|
func _ready():
|
2021-05-25 19:24:19 +02:00
|
|
|
activatePaper(paper)
|