Questions tagged [mobile]

A portable device capable of multiple applications, one of which is a platform for playing games. Mobile phones are the eponymous example of such devices. Distinct from handhelds, which are exclusively or primarily designed for gaming.

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

Unity best practices for 3D tilemap

I looked at the forums and found out that it is not recommended to use the terrain system for the mobile platform. So then I decided to have a single plane as a "terrain" with single ground ...
  • 17
2 votes
1 answer
56 views

Discounts on In-App Purchases

A client asked me about implementing In-App Purchase discounts on the Apple App Store and Google Play. For example, putting an item that's normally $7.99 on sale for $5.99. I've primarily been working ...
  • 4,050
0 votes
0 answers
22 views

How to modify AndroidManifest.xml or any other config files to build the APK for ONLY foldable phones?

I want to build an APK in Unity for ONLY foldable phones. There is a tutorial from Samsung website, but it only tells us how to dynamically resize the app in case of a foldable phone. Unfortunately, ...
1 vote
1 answer
196 views

How to detect if a mobile device is a foldable phone?

There are new "foldable" mobile devices such as Samsung foldable phones. Is there any way we can write a C# script in Unity to detect if the device is a foldable phone ? I try, but can't ...
1 vote
1 answer
363 views

Manually trying to start AR Core XR Loader, but its Subsystems won't start?

I'm trying to implement that in one scene I start the Google Cardboard XR Loader, and in the other scene I start the AR Core/AR Kit XR Loader. This is how I start the loader required for the scene: <...
  • 671
0 votes
1 answer
53 views

Will putting Screen.orientation in Update affect the performance?

If I put Screen.orientation in Update to detect whether the device is in landscape orientation, will it affect the game's performance? ...
1 vote
1 answer
60 views

Canvas scaler does not work when the UI is Instantiated at runtime

My canvas scaler does not work when the UI is instantiated dynamically. It does work well in iPhone 6.5 inch simulator: The problem is when I use 5.5 inch or smaller simulator: It does not follow ...
0 votes
0 answers
32 views

Monitor all outgoing requests from a mobile app

How to monitor all outgoing requests sent by the app and any of the installed packages, including trackers? For example, a Firebase Analytics SDK collects various data about the app users and their ...
1 vote
1 answer
540 views

WebViewControl.java:122 cannot find symbol when packaging Unreal 4 game for Android

Whenever I try to package my project for Android I get this. Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:122: error: cannot find symbol My setup: ...
  • 13
0 votes
1 answer
588 views

Invalid maximum heap size: -XX:MaxHeapSize=4096m

I am trying to package android project in UE4.27. And getting this I tried changing environment variable _JAVA_OPTIONS: -Xmx512M -Xms512M not worked. Where can I change MaxHeapSize, please tell me ...
  • 13
-1 votes
1 answer
92 views

Does Screen.orientation not work in simulator?

I use the Screen.orientation property to reposition my UI when the screen is rotated. But when I rotate the simulator to left or right, ...
1 vote
0 answers
506 views

How to hide the TouchScreenKeyboard's input field in Unity on Android?

Unity for Android suggests that you can hide the TouchScreenKeyboard's input field with the command TouchScreenKeyboard.hideInput. Superficially this looks like it ...
  • 461
1 vote
1 answer
66 views

Visual Joystick moving faster than my finger. why?

First of all, here's the video of what my problem really is. (Sorry for bad quality) As you can see, the red circle is the center of the visual joystick. The green one indicates my finger and the ...
  • 681
1 vote
1 answer
415 views

OnDrag is not invoked with a small dragging movement in Unity

I implemented mobile rotation control with IPointerDownHandler and IDragHandler. It seems fine if the movement is fast enough, but there's a serious flaw that the OnDrag event never invoked if the ...
  • 1,133
0 votes
1 answer
510 views

Unity mobile joystick input doesn't react to touch

I created a 3D mobile project, so I used my own joystick script, I also tried joystick from asset store. The problem is that the stick image of joystick doesn't move at all, in this case it's ...
  • 17
0 votes
1 answer
146 views

The performance gains of tiled rendering on mobile

I'm making an OpenGL es app on android and I'm trying to improve the performance of it. I found this technique called tiled rendering (not the same thing as tiled deffered rendering*) wich divides the ...
  • 72
0 votes
0 answers
146 views

How can I reduce Unity file size? (for Mobile) [duplicate]

I looked at the file size of a project I completed for mobile platforms in Unity. The file is 1.26 GB, only the Assets file is 44.5 MB, only the library file is 1.21 GB. I want to downsize it by a ...
  • 13
0 votes
1 answer
83 views

Use of CPU vs. GPU on mobile devices

I was always told that if a task can be parrarelized, I should put it on the GPU for better performance. Although this is defenetly true for computer GPUs, I was wondering if the mobile GPUs were so ...
  • 72
2 votes
0 answers
358 views

Tilting device about one axis in any orientation using gyroscope sensor

I am developing a Unity game where I need to tilt an iOS device to steer a ship as it flies in a straight line. The steering should be consistently accurate in any orientation, e.g. if the player ...
  • 33
0 votes
0 answers
101 views

Graphics/Mesh scale and anchor with different screen resolution

I wanted to ask if there is a recommended approach to designing graphics that adapt and anchor to the different resolutions/aspect ratios found on different mobile devices (especially considering the ...
0 votes
0 answers
17 views

Why does my profiler show more CPU usage after setting Application.targetFrameRate? [duplicate]

I read optimization recommendations for mobile devices on a website. It was written that "targetFrameRate" would be good to stabilize at 60 on average. I wrote the following code in ...
  • 13
0 votes
0 answers
50 views

Help creating 3d object view with Accelerometer in Unity?

Hi I would like to create a object view controlled by mobile accelerometer so it gives a AR impression like in this video: https://www.youtube.com/watch?v=5A8olJzeAYg. So this is what I tried so far. ...
  • 183
0 votes
0 answers
246 views

How to continue playing music while mobile phone times out or goes to lockscreen?

Is there a way to keep my app/game running in background even when my screen times out and goes to the lock screen on mobile (specifically Android)? For my purposes, I prefer if it goes to the lock ...
0 votes
1 answer
382 views

How to stop Sprites from stretching on Mobile with different aspect ratio

On Unity 2020.3.24f1: I created a 2D Core Project and changed to build on any Android device. Added a simple 2D Circle Sprite to my Scene. The Problem: I want my Game to run in 9:16 aspect ratio all ...
2 votes
3 answers
428 views

GM files in online mobile games: what type of GM file should I keep a local copy and how does it synchronize with server?

In mobile game development there are types of data that are not user save-data but are necessary for the game, we call it GM files. In my specific case, the GM files include text data such as "...
  • 153
0 votes
1 answer
88 views

Improving performance of lighting on mobile

I'm trying to make a 3D game for mobile. When rendering a very simple scene, my performance drops from 60 fps to 30 fps when I use fragment shader lighting instead of vertex shader lighting. I really ...
  • 72
2 votes
1 answer
2k views

How to play audio in Unity when a mobile game runs in the background or the screen is locked?

I am trying to make a 3D audio player with a retro cassette-like interface. The first thing is to make audio playable smartphone-wise, even when the game is in the background or when the screen is ...
  • 145
1 vote
0 answers
66 views

How to make a multiplayer game for multiple screen sizes?

I am making a 2d multiplayer game for Android, targeted to run on every device. How do I calculate the common position of an asset, independent of screen size? What size map should I assume is a ...
2 votes
1 answer
765 views

How to re-render the scene only when something changes in Unity?

Does Unity continuously refresh the screen or constantly render 3D objects on screen with each refresh? For example, let's say hypothetically you had a screen where you were just text messaging ...
  • 461
0 votes
1 answer
1k views

Why is my UI not working on android but works perfectly on PC?

I tested my game for the first time on mobile and the UI almost doesn't work. I use if(!EventSystem.current.IsPointerOverGameObject()) to check if I'm clicking on ...
1 vote
1 answer
236 views

2D vs 3D mobile power consumption in Unity [closed]

For an optimised and playable game written for mobile with Unity, how much of a difference is there in power consumption between 2D and 3D? Assuming: Unity game engine The game requires constant ...
  • 13
-1 votes
2 answers
194 views

How to port/convert a Java program to mobile?

I have coded a simple video game in Java. It works fine on all computers that have Java installed. However, I would really like to play it on my smartphone and it would also be nice to be able to play ...
0 votes
2 answers
558 views

How can I serialize lists to JSON on mobile?

I'm having difficulties serializing lists with the built in JsonUtility. I eventually figured out this just isn't possible with its limited capabilities. As much as I'd like to use Newtonsoft, I ...
  • 135
0 votes
0 answers
17 views

Unity Mobile: How can we safely store our API key? [duplicate]

We're making an app in Unity. We're building it for Android and iOS. We also have a server. In order to use our server you need to present our api key for the server. So, we need to store that key in ...
0 votes
1 answer
102 views

How can I implement an aiming system like the Tank Stars mobile game?

I have been trying to implement the same aiming system as in Tank Stars, but I got a little stuck. I implemented simple stick aiming, which basically aims towards the stick movement. In Tank Stars, ...
  • 103
1 vote
0 answers
1k views

Orientation changed event in Unity3D?

I'd like to listen to orientation change events, so for example my UI layout or the components themselves can be changed. All I've found is that I should check the value of ...
  • 671
0 votes
1 answer
63 views

Is it possible to clone a game, and make modifiactions to it?

I basically want to know whether or not it is possible to copy a mobile game and make it into a new game by modifying it . I want to be able to access , moderation tools and basically alter, things ...
0 votes
1 answer
94 views

How can I add a button that opens a pop-up?

I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this? My current code: ...
0 votes
1 answer
79 views

How to develop a GameMaker game for both desktop and mobile

For a few months I have been creating a game using GameMaker Studio 2 Desktop. It turns out that I would like to launch it also for cell phones, and for that I bought GameMaker Studio 2 Mobile. That's ...
0 votes
0 answers
15 views

Using Mobile Accelerometer to trigger an action in my game unity

Hi I have this project I'm working on which is a bowling game controlled by mobile acceleration. I want the following: when the player holds the phone up facing him for 2 seconds to enter strike state....
  • 31
0 votes
0 answers
24 views

How can I make responsive computer and touch click and drag?

This code works but it has a little delay on computer controls and higher delay on mobile touch screen controls, so its not responsive as I want it to be. ...
0 votes
0 answers
27 views

Script not working (Function not changing value)

I have this script that I made for an FPS character. public class Player_Movement : MonoBehaviour { public CharacterController controller; public Transform camera; ...
  • 472
3 votes
0 answers
49 views

Authentication and keeping track of users for a cross platform game (Steam+mobile)

I've got a question about authentication/user accounts. I'm building a game using Unity that'll be sold on Desktop (through Steam) and Mobile (Play/App Store). The game has online multiplayer ...
-1 votes
2 answers
690 views

Why shouldn't I release my app to all countries? [closed]

When releasing a mobile app on iPhone and Android, you can specify which countries you want to release your app to. Intuitively, you may want to just release it to all countries. One example of why ...
  • 5,297
0 votes
0 answers
473 views

How to move 3D Object With Touch Dragging Finger By the screen In android Unity Game

My Code is As Followed: ...
2 votes
1 answer
205 views

Why does my game look different on my mobile device than in the editor?

I am new to Unreal Engine. My game in mobile looks totally different than in Unreal Engine editor. In Editor: In Mobile: Is this a symptom of something obvious? How can I make it so that what I'll see ...
1 vote
0 answers
132 views

How can I support direct P2P for mobile devices?

I'm Interested in two or more player co-op in Godot, via direct P2P without connection to a central server. I have this idea that would utilize two smartphones in proximity to one another. I don't ...
0 votes
2 answers
643 views

Default Game Window Size To Take While Making Games

I am planning to make a game for mobiles and tablets, I wanted to know what would be the default resolution that I should set for my game so that it covers all or most of the devices out there. I read ...
  • 1
3 votes
1 answer
106 views

Tile map click to walk UX

My game is a top down mobile game where the player clicks a tile to walk to it. However, it isn't clear where tile boundaries are from just looking at a level, so you could click on the edge of a tile ...
  • 1,116
0 votes
1 answer
214 views

How to make a countdown timer based on local time

I have a problem. In my GetTime.cs script, I am getting local time from an Android/iOS device, and simply assigning it to a Text component. ...

1
2 3 4 5
7