Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access android editor while in play mode #94159

Closed
Saul2022 opened this issue Jul 10, 2024 · 12 comments
Closed

Unable to access android editor while in play mode #94159

Saul2022 opened this issue Jul 10, 2024 · 12 comments

Comments

@Saul2022
Copy link

Tested versions

Reprocible in godot 4.3 beta 1 and most likely the older versions

System information

Sansung s23+ qualcom adreno 740

Issue description

(Putting as bug, because it does not look intended at first glance)

It seems when trying to run the game in play mode while you can play it alright on android, in the moment when you want to make any changes in games or lets say debug the errors you had or profiling, it turns out theres no editor window, when usually on pc you have both the editor and game window to adjust your stuff etc..

Screenshot_20240710_065308_One UI Home

This makes it way harder to know what may cause the error in your code or not know where to optimized, because you can't really set things up before game window pops out, and while clicking the right arrow for returning to editor mode(closing the game window in the process), sometimes in larguer project( 200mb) it can quit the whole app itself.

Steps to reproduce

Open the project

Set play mode

Notices how you can"t edit anything in editor as there is no window for it.

Minimal reproduction project (MRP)

tests-android.zip

@ayanchavand
Copy link
Contributor

Have you tried remote debugging? if not you can enable it from from Debug -> Deploy with Remote Debug and make changes while the app runs on your phone

@Saul2022
Copy link
Author

Have you tried remote debugging? if not you can enable it from from Debug -> Deploy with Remote Debug and make changes while the app runs on your phone

WDYM? The main issue is that thre´s only one window and that only for the ingame one, which means theres only ingame window , you can´t profile or anything just by code and if some code has an error you would have to close the window, because it not letting do anything.

@ayanchavand
Copy link
Contributor

ayanchavand commented Jul 10, 2024

WDYM? The main issue is that thre´s only one window and that only for the ingame one, which means theres only ingame window , you can´t profile or anything just by code and if some code has an error you would have to close the window, because it not letting do anything.

when remote debugging you can access the editor just like how you would during the pc play mode so I don't see what's the problem here

@Saul2022
Copy link
Author

just like how you would during the pc play mode so I don't see what's the problem.

Um doesn't seem to work , eanbled it first and then tried, with the same results and then with the reduced one and it kind of the same in my bigger project.

Screenshot_20240710_171528_Godot Editor 4

@ayanchavand
Copy link
Contributor

ohh you are developing on android itself? yeah that's an issue. sorry about the misunderstanding

@Saul2022
Copy link
Author

ohh you are developing on android itself? yeah that's an issue. sorry about the misunderstanding

It alright, though that was on the title itself 😅, i can't on pc , becajse mine is dead.

@Saul2022
Copy link
Author

I think it might be fine to close this or stay it open as m4gr3d mentioned tyou can do it on phones on editor/run/window_placement and select side by skde or editor( though this seems more unstable as it can sometimes not show up), though take into account that on big project ( as my experience statement) it can take minutes to just go from play window to editor as it might be a bug or an android scoped storage issue.

@Alex2782
Copy link
Contributor

Alex2782 commented Jul 17, 2024

multi-window support already seems to be included when debugging is activated in the GdScript. Perhaps it could also be made configurable for Play Mode

https://godotengine.org/article/android_godot_editor_play_store_beta_release/

Screenshot

image

Note: The debugger functionality is only available on large form factor Android devices with multi-window support, due to the need to have the running project side-by-side with the Godot Editor.

@Saul2022
Copy link
Author

Note: The debugger functionality is only available on large form factor Android devices with multi-window support, due to the need to have the running project [side-by-side]

That what i'm doing on my s23+ and it works well, what does not is the same as editor option , that sometimes doesn't work, or the editor get frozen due to a bug prob related to this #94416 (comment)

@AkzinNoob
Copy link

Its ACTUALLY easy to solve this problem i had it before you and took me too long to find the way out so i ll just share it with u first click on Editor then Editor setting then under the run group click on the window placement android window should be showing in front of u click on its property and chose side by side ..

Screenshot_2024-08-01-23-04-47-856_org godotengine editor v4

In case its didn't work try to activate the developer options on your device (you can watch shot video in yt if u don't know how to activate it)
From the developer options u need to go to the apps group and activate two options the first one is (Force activities to be resizable) and the second one is(enable non-resizable in multi window)

This two developer options with the Editor setting side by side should make the game testing when click play split the screen in two halfs one for the Editor and one for the game
!!!(For me the Editor show only half of it i didn't find solution to make it show fully on the half of the screen)
Last thing this should shows the changes happening in the Editor like moving object in Editor will change its place in the game played too
But i am not sure about the play test sending the informations to the Editor (u can print the any thing and check your self if its work probably or not)

@AkzinNoob
Copy link

Example for the Editor ahowing only half of it
Screenshot_2024-08-01-23-30-42-064_org godotengine editor v4

See when i gave it larger amount of the screen its show more of my Editor
Screenshot_2024-08-01-23-30-48-396_org godotengine editor v4

@Chaosus Chaosus changed the title Unable to acces android editor while in play mode Unable to access android editor while in play mode Aug 2, 2024
@m4gr3d
Copy link
Contributor

m4gr3d commented Oct 17, 2024

The issue should be mitigated by #95700 which will be available in the next 4.4 and 4.3 releases.

@m4gr3d m4gr3d closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants