WIP Parchment, make an editor script and set value on Warcraft scene
This commit is contained in:
committed by
VAILLANT Jeremy
parent
f330135fa8
commit
813e27c828
@@ -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)
|
||||
Reference in New Issue
Block a user