2021-05-25 16:44:55 +02:00
|
|
|
tool
|
|
|
|
|
extends Spatial
|
|
|
|
|
|
2021-05-25 19:24:19 +02:00
|
|
|
export(bool) var paper
|
2021-05-25 16:44:55 +02:00
|
|
|
|
|
|
|
|
func activatePaper(showPaper):
|
|
|
|
|
if Engine.editor_hint:
|
|
|
|
|
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)
|