Skip to main content

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
45 views

Chain cutting swipe input skips over chains

I have a game where you need to cut chains, similar to Cut The Rope. I want to develop it for Android, so I need mobile controls. For detecting swipes I used ...
CheckerT's user avatar
1 vote
0 answers
52 views

Flipped normals and texture flickering on Motorola and Samsung Android phones

What is happening to the textures when playing on the Motorola Android phone? Deleting and creating new materials doesn't work, the problem persists even with new materials, material overlay or ...
Atsinganoi Dragon's user avatar
0 votes
0 answers
45 views

How to implement a server on Android during play

I'm developing a chess game for mobile. In Godot, you can set up a UDP connection with PacketPeerUdp. My problem is establishing a process that acts as a server and runs the already compiled (armv8) ...
NitaStack's user avatar
0 votes
0 answers
35 views

Cinemachine FreeLookCam stays in "bottom rig" and won't switch to other rigs

I have an issue with Cinemachine. I set it up to follow and look at the "player," and I added the script recommended by another user: ...
UnnerGG's user avatar
1 vote
0 answers
60 views

How to know when should a webcam/phone camera refocus?

This is the code I use to display the camera's footage inside my app: ...
Tudvari's user avatar
  • 731
0 votes
0 answers
55 views

How can I clearly distinguish between tap and swipe inputs on mobile?

How can I clearly distinguish tapping and swiping touches? This is my interaction script: ...
Byungheon Lee's user avatar
0 votes
1 answer
93 views

Unity Touch Pressure with iOS iPad

I've implemented this: https://docs.unity3d.com/ScriptReference/Touch-pressure.html. It is always returning 1, which makes me think that touch pressure is not a feature of the device. The only issue ...
user15916373's user avatar
1 vote
0 answers
140 views

Very high energy impact and frame drops on iOS

I have created a mobile 3D game and now I am running it on an iOS device. It works well and runs at about about 25 fps. But after a while, about 2-3 minutes, it drops to 15 - 18 frames per second. My ...
jasmine zhao's user avatar
0 votes
0 answers
106 views

Unity Remote 5 iOS Auto Rotation Stretch the Game

I'm using Unity to make an iOS app and have been testing it with Unity Remote 5 on a 4th gen iPad Air. With auto-rotation enabled (the one in ...
Amarth Gûl's user avatar
0 votes
1 answer
1k 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 ...
Silz's user avatar
  • 37
2 votes
1 answer
748 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 ...
Kevin's user avatar
  • 5,734
1 vote
1 answer
751 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 ...
Job_September_2020's user avatar
1 vote
1 answer
888 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: <...
Tudvari's user avatar
  • 731
0 votes
1 answer
165 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? ...
jasmine zhao's user avatar
1 vote
1 answer
254 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 ...
stingalimian galimian's user avatar
1 vote
1 answer
1k 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: ...
GEO's user avatar
  • 13
0 votes
1 answer
5k 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 ...
GEO's user avatar
  • 13
-1 votes
1 answer
283 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, ...
利维坦's user avatar
1 vote
0 answers
1k 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 ...
mike's user avatar
  • 481
1 vote
1 answer
68 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 ...
Arian_ki's user avatar
  • 691
1 vote
1 answer
1k 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 ...
modernator's user avatar
  • 1,213
0 votes
1 answer
1k 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 ...
Silz's user avatar
  • 37
0 votes
1 answer
503 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 ...
Gyoo's user avatar
  • 186
0 votes
0 answers
230 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 ...
gunza's user avatar
  • 13
0 votes
1 answer
418 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 ...
Gyoo's user avatar
  • 186
2 votes
0 answers
820 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 ...
Cato's user avatar
  • 83
0 votes
0 answers
155 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 ...
xdevel2000's user avatar
0 votes
0 answers
76 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. ...
Ivan's user avatar
  • 317
0 votes
0 answers
437 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 ...
dutoit077's user avatar
0 votes
1 answer
843 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 ...
KarlTheGreat's user avatar
2 votes
3 answers
443 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 "...
cr001's user avatar
  • 153
0 votes
1 answer
150 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 ...
Gyoo's user avatar
  • 186
2 votes
1 answer
3k 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 ...
idchlife's user avatar
  • 229
1 vote
0 answers
100 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 ...
Abhay Kumar's user avatar
2 votes
1 answer
1k 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 ...
mike's user avatar
  • 481
0 votes
1 answer
2k 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 ...
Samuel Fyckes's user avatar
1 vote
1 answer
335 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 ...
nubbers's user avatar
  • 13
0 votes
2 answers
432 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 ...
Saitou Gin's user avatar
0 votes
2 answers
1k 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 ...
Vandel212's user avatar
  • 135
1 vote
1 answer
749 views

How to debug UnityGfxDeviceWorker (34): EXC_RESOURCE RESOURCE_TYPE_MEMORY error on an iOS device?

How does one debug this Xcode error on an iOS device? Debug - UnityGfxDeviceWorker (34): EXC_RESOURCE RESOURCE_TYPE_MEMORY
ina's user avatar
  • 294
0 votes
0 answers
18 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 ...
Guye Incognito's user avatar
0 votes
1 answer
181 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, ...
Raguel's user avatar
  • 103
1 vote
0 answers
2k 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 ...
Tudvari's user avatar
  • 731
0 votes
1 answer
217 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 ...
Hatshihiro's user avatar
0 votes
1 answer
175 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: ...
Dou Software's user avatar
0 votes
1 answer
103 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 ...
Boneco Sinforoso's user avatar
0 votes
0 answers
24 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....
WILO's user avatar
  • 31
0 votes
0 answers
29 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. ...
MM1Content's user avatar
0 votes
0 answers
29 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; ...
KI.'s user avatar
  • 462
3 votes
0 answers
58 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 ...
Robin Sonneveld's user avatar

1
2 3 4 5
7