GUI Questions

2

Welcome back, forums! Just a question: implemented mobile controls in a build, on a canvaslayer with all the button set to Touch Screen Only visibility in the editor and any time I launch them in the...
Recondition asked 10/8, 2023 at 19:2

1

Hello, I tried this on Godot 3.5.2 stable I added '$Label.text = str(OS.screen_orientation)' in _process function I set my Android phone to allow orientation detection. I export the game. I ran th...
Bilicki asked 10/8, 2023 at 10:55

3

So I want to Override a build-in function to adjust it to my needs, but I can't get it to work or find any solutions, the Override just doesn't get called. Details: I want to extend the select() metho...
Sosthenna asked 10/8, 2023 at 15:41

6

How do you make it so that when you click away from a control it loses focus? so for example i have my button selected, but I want it so that whenever you click in any other part of the screen it lose...
Monnet asked 23/7, 2022 at 15:56

9

Based on https://docs.godotengine.org/en/stable/tutorials/2d/custom_drawing_in_2d.html, I have created a few controls that have custom drawing. If I have a custom control on top of a built-in control,...
Graces asked 4/8, 2023 at 23:26

3

I'm trying to create dialog balloons and finding that the sizes don't update after I change the text in them. Is there a way to get a control to calculate it's size after making changes that will affe...
Embus asked 29/7, 2023 at 2:17

2

Solved

I am developing a mobile app in godot(it's frustrating, wouldn't reccomend). How can I detect if the user pressed the back button or the back swipe like it's on modern smartphone ? I found answers on ...
Jemma asked 15/7, 2023 at 13:45

5

I have two scenes that have a button that when clicked runs the following code: extends Button #@export var transto: Resource @export var transto: PackedScene func _on_pressed(): get_tree().change...
Undoing asked 28/6, 2023 at 19:26

6

I have made an android app. There is a scene with a scrollcontainer and a lot of buttons in it. I made the strech mode to Ignore, so my app fills the whole screen. I have a screen ratio of 16:9, as it...
Loaf asked 10/7, 2023 at 14:0

3

Hello, I've written some GDScript that creates some buttons with their own icons, text and etc in a for loop. However, my issue is having them have their own signals that do different actions, I've tr...
Sphygmograph asked 10/7, 2023 at 6:49

4

In the inspector>theme overrides>constants>separation of the split container its value is zero, but there is a gap between the children, I want the children to be adjacent to each other witho...
Amaryl asked 3/7, 2023 at 21:16

3

Solved

I consider myself a beginner in Godot, and it's been a week that I've been trying to fix this, which is updating the health in the player script to the label script. I've seen and searched for many tu...
Mosasaur asked 23/6, 2023 at 23:30

2

I'm in a Godot Engine Youtube Course and I was doing the HUD. What I have on the screen was a kind of test to see if the objects on the screen moved with my character (Health, coins, Pause Button) but...
Residuum asked 13/6, 2023 at 13:30

1

I'm new to Godot and try to wrap my head around layouts using the UI nodes. For my current experiment I try to build a matrix of ColorRect nodes. To do so, I use GDScript to create some HBoxContainers...
Argos asked 11/6, 2023 at 22:4

2

I have a problem with rendering a font. Everything works fine except when the text size is 16 or a multiple of it (e.g. 16, 32, 64, etc.). Below, I will provide some examples. I don't want to be limit...
Tribalism asked 11/6, 2023 at 10:57

3

Solved

How do I set this in the wordenvirnment camera ? var world:WorldEnvironment = $WorldEnvironment Documentation says it should be accessible on the word.environment... , no dot_blur_far_enable there, ...
Depositary asked 2/6, 2023 at 2:46

9

I want to make the other children slide to fill the position when a child is removed from a container. For example a HBoxContainer. Is there a place I can do this within the container class? Or will ...
Belletrist asked 7/6, 2023 at 13:47

5

Solved

I'm developing a minigame with Godot 4.0.3 where I move the camera2D using a tween: var tween = get_tree().create_tween() tween.tween_property(_camera, "position", Vector2(0,-60), 0.2).as_relative()...
Dessiatine asked 1/6, 2023 at 22:40

13

Solved

I am having a problem where I have the following objecst in a world3d: Node3D: ( rotated in Y 90 degrees ) -> Several child nodes3D with diferent rotations and positions I want to send the rotat...
Cathcart asked 30/5, 2023 at 22:35

3

Solved

The Script Editor panel is ordered alphabetically by default: You can change this by dragging-and-dropping scripts up and down, but your custom sort doesn't stick on closing and re-opening Godot. ...
Acetylcholine asked 9/5, 2023 at 10:46

2

Solved

I cant get my pause menu to open my code: extends Control var pause_menu: Control func _ready(): pause_menu = get_node(".") as Control if Input.is_action_pressed("ui_cancel"): Input.set_mouse...
Lancey asked 6/5, 2023 at 16:21

11

After a scene is rendered, and a bunch of Sprites have been overlaid on top of each other, is it possible to query a sprite2d to see which parts of it are still visible? If so, how?
Lancastrian asked 4/5, 2023 at 1:27

2

I want to know if there is a correct name for this x and y editor thing and if there is a UI node that I can use for my project.
Stria asked 1/5, 2023 at 13:5

2

Solved

Hello, I have a control scene with some labels, and i wanted to display two of them next to each other, so i tried to use a HBoxContainer node in another scene to display them that way but it seems li...
Glaucous asked 28/4, 2023 at 13:21

2

Coming from Unity, I was wondering if there was any equivalent (or way to achieve such) to the "Best Fit" option for Text Objects that I can apply to Label/RichTextLabel nodes? I've looked everywhere ...
Wren asked 8/4, 2023 at 14:6

© 2022 - 2024 — McMap. All rights reserved.