Files

17 lines
311 B
GDScript
Raw Permalink Normal View History

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