Why project is working in Defold but after export to mobile device, some things don't work? [SOLVED]

I think you in update() should print the gui.get_world_position() of the list that disappears. What kind of position does it have when it goes missing? Does it end up off screen somewhere?

I tried it, the position is as it should be.

Have you checked that you get the same inputs as before?
And are you producing the same outputs?
I.e. when handling the inputs.
Add some printouts of your values and compare.

I let the code print the position since I started the app. The position before and after the buttons disapeared, didn’t change.

Is your menu/list gui nodes parented by a node that goes off screen? I wonder if this issue might be related to frustum culling in the render script.

Hm, it could be the problem. Is there some chance to fix it?

You can try if it is the frustum culling in the GUI that is the problem by removing frustum culling in your render script. Modify these two lines:

    -- remove the frustum culling option table
    render.draw(self.gui_pred)
    render.draw(self.text_pred)

If you are not already setup using a custom render script, then you would first need to copy the default render script from the built-ins and place in your project then set it in project settings and make the changes to the gui portion as @britzl stated above.

We don’t have frustum culling for GUI yet?

If the position is the same, then you should check the other variables and events.

So, if you build to the mobile target from the editor it works fine, but if you bundle mobile debug version - then scroll disappear? (I just wanna make sure I fully understand when it’s fine, and when it’s broken)

I only tried to bundle the project. I didn’t build to the mobile target yet.

I checked get_alpha and is_enabled(). I have no idea what to check next…

Did you bundle release or debug version?
if you run build locally using ctrl+B and change window size - does your scroll stay on the right place?

So I copied the default.render_script and default.render, changed the new render_script, set the render_script to the new render and the render to the game.project. I read this in documentation and wonder if I should do it and how.

  1. Edit your copy of the “default.render” file and change the Script property to refer to your copy of the render script.

I bundle debug version.
Yes, the scroll list stays on the right place…

Hello,
I still can’t solve it… The advice from @britzl unfortunately didn’t help me and I wonder if the vanishing of objects when they go out of screen even could be the problem, because the scroll list disapears even if I only touch it and the bigger part of it stays still “visible” on the screen. Another objects what also sometimes run out of the screen, don’t vanish on the other hand.

Thank you for your replies.

if you share your project to me (in private messages) I can take a look

1 Like

Unfortunately I can’t reproduce the issue on your project (I checked what you sent me in PR)
What is Defold version you use?
Did you try to close project, then remove .internal and build folder and then check again?

I use Defold v. 1.3.2. I’ll update.

I didn’t try that. Close on my computer and remove from project folder?