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
0 answers
24 views

Best option for multiplayer architecture in a cross-platform (only iOS/android) game in unity? [closed]

The mobile game I'm making in Unity is similar to a pokémon-style, single-player RPG, with multiplayer (turn-based) battling against other players above you in a global ranking. Opposing players pre-...
  • 11
1 vote
1 answer
20 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
29 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 ...
0 votes
0 answers
93 views

ue4 android packaging problem (WebViewControl.java:122 cannot find symbol)

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: ...
  • 3
0 votes
1 answer
47 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 ...
  • 3
-1 votes
1 answer
35 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
150 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 ...
  • 419
1 vote
1 answer
65 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 ...
  • 656
1 vote
1 answer
137 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,123
0 votes
1 answer
136 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 ...
  • 3
0 votes
1 answer
73 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 ...
  • 17
0 votes
0 answers
70 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
52 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 ...
  • 17
2 votes
0 answers
197 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
59 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
15 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
38 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. ...
  • 131
0 votes
0 answers
125 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
0 answers
32 views

How to set boundary for 3D objects in Javascript

[EDIT] Found the answer, solution in comment I have this 3d first person game made with Js/css. I have to set boundaries or clipping to the map as the character moves around the 3d object, I only need ...
0 votes
1 answer
218 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 ...
0 votes
0 answers
104 views

How to implement crowd movement in Unity without rigidbodies?

I am working on a mobile game where its core gameplay includes a bunch of objects (can exceed 100) walking around autonomously in an environment where they push each other and get pushed by other ...
0 votes
0 answers
66 views

Why does the order of these two functions matter? If one goes first they both run. If they're reversed the second fails. Can't see why

I have developed a "Global" GameObject in Unity which loads on the first scene and then persists using the method described here: How to make a singleton "game manager" object/...
  • 419
2 votes
3 answers
411 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
79 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 ...
  • 17
2 votes
1 answer
1k 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
0 votes
0 answers
33 views

What happens if i create google play console if i am under 18? [duplicate]

I want to publish my game on google play, but i am under 18. However i asked my parents if they would pay for google play console with their credit card and they agreed. My question is will google ...
0 votes
0 answers
55 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 ...
1 vote
1 answer
466 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 ...
  • 419
0 votes
1 answer
783 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
174 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
141 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
289 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 ...
  • 125
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
88 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
923 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 ...
  • 661
0 votes
1 answer
62 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
63 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
73 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
14 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....
  • 21
0 votes
0 answers
23 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; ...
  • 462
3 votes
0 answers
40 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
556 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,333
0 votes
0 answers
304 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
180 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
112 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
514 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
101 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
111 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. ...
16 votes
1 answer
3k views

How to file down a fingernail mesh?

I am creating a nail salon 3D game where I need to implement nail filing mechanics. I have tried out approaches including mesh deformation but I'm concerned about performance as I am targeting mobile ...

1
2 3 4 5
7