0 votes

i tried to do like this, but it doesn't work.:

Scene.mouse_filter = MOUSE_FILTER_IGNORE
Scene.mouse_filter = Control.MOUSE_FILTER_IGNORE
Scene.mouse_filter = 2
Scene.MOUSE_FILTER_IGNORE

Another problem may be in the signal or in the path to the node, here is the complete code of my script:

onready var MainMenu = $MainMenu
onready var Chapters = $Chapters
onready var Options = $Options

func _on_MainMenu_change_to_chapters():
    fade.fade_in()
    ui_sound.play()
    MainMenu.mouse_filter = MOUSE_FILTER_IGNORE
    yield(get_tree().create_timer(transition_duration), "timeout")
    MainMenu.visible = false
    Chapters.visible = true
    Options.visible = false
    Chapters.mouse_filter = MOUSE_FILTER_STOP #default value
    fade.fade_out()
Godot version v3.3.4-stable
in Engine by (137 points)

It should work.
Please describe what happens and what do you want to happen in your project

nvm I fixed it

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.