16 lines
362 B
GDScript
16 lines
362 B
GDScript
tool
|
|
extends Spatial
|
|
|
|
export(bool) var paper = false setget activatePaper
|
|
|
|
func activatePaper(showPaper):
|
|
if Engine.editor_hint:
|
|
paper = showPaper
|
|
|
|
print("[Parchment] Editor value " +String(showPaper))
|
|
$sm_paperparchment_lod0.set_visible(paper)
|
|
|
|
func _ready():
|
|
print("[Parchment] Paper bool " +String(paper))
|
|
$sm_paperparchment_lod0.set_visible(paper)
|