WIP Parchment, make an editor script and set value on Warcraft scene

This commit is contained in:
stilobique-i7
2021-05-25 16:44:55 +02:00
committed by VAILLANT Jeremy
parent f330135fa8
commit 813e27c828
6 changed files with 17 additions and 22 deletions
+15
View File
@@ -0,0 +1,15 @@
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)