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
parent 3b6a70596e
commit d8e1f4721c
6 changed files with 18 additions and 23 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)