Files

17 lines
305 B
GDScript
Raw Permalink Normal View History

tool
extends Spatial
export(bool) var paper
func activatePaper(showPaper):
if Engine.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)