Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | AleksandrK512 |
So i have scene “Tree1” in another scene and i want to hide mesh “outline” from “Tree1” scene while i have this scene in another scene. Scene “Tree1” script:
extends KinematicBody
var outline
var wr
func _ready():
outline = preload("res://Objects/Tree1.tscn")
outline = outline.instance().get_node("Cylinder/outline")
pass
func _input_event(camera, event, pos, normal, shape):
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.pressed:
outline.hide()
pass
What i am doing wrong?“outline.hide()” just dont work without erors =(