Files
puzzle-quest/assets/props/parchment/parchment.gd
T

19 lines
335 B
GDScript
Raw Normal View History

tool
extends Spatial
export(bool) var paper
func activatePaper(showPaper):
if Engine.editor_hint:
paper = showPaper
var parent = get_node(".").name
print("[Parchment] Editor value " +String(showPaper) +" | " +String(parent))
$paper.set_visible(paper)
$paper.use_in_baked_light(true)
func _ready():
activatePaper(paper)