#📱┃mobile

1 messages · Page 12 of 1

sage mauve
#

yeah maybe someone from unity can answer this question

#

cause we got no clue about it

#

it's not a big problem for me it's just piss me when i get gradle error when my space is low

brazen birch
#

The problem isn't asking for help, it's the self entitlement that someone isn't answering your question fast enough.

I didn't think I've ever seen a Unity employee respond to a question in the #📱┃mobile discussion

#

Objectively speaking, you aren't asking a question about a common issue the average person knows about.

#

Nor is it a problem an average person really would care about.

sage mauve
#

i don't expect fast response, but also don't want to wait months for a response

#

i 100% understand what u talking about

brazen birch
#

Let's check. My time, you posted a vague question at 2:39 yesterday and complained by 9:12am the next day about not being answered fast enough

sage mauve
#

maybe it's my time zone

#

i posted in the wrong time

#

atwhatcost bro what are you typing ... it's like 2 min now and it still get llyod is typing

brazen birch
#

No it's you demanding answers and making side comment within 24 hours of asking a question very very few people could answer.

I did read your message about midnight my time, and thought hey maybe I'll help this person out next grade build and see why it is populating that folder. As I'm probably one of the few people able to do it.

Then I saw the side comments complaining about how terrible discord is for help. And I thought, why am I even debating helping? I don't work for unity :D. And then oh my the self entitlement begins.

#

Believe it or not, this is not the only discord channel I'm in, and sometimes I don't reply right away 😄

#

At any rate, I think it's time to block and move on. Someone else can help if they want to I'm sure.

#

I'm done with the self entitlement

sage mauve
#

bro thank you so much i feel sorry for complaining now

brazen birch
#

No, because then as I'm trying to explain, and juggling staff asking me questions- you start making side comments about me typing too slow.

sage mauve
#

sorry for that too

#

we just spammed the mobile channel lol sorry mods

brazen birch
#

For me, this process is a bit different depending on your admob version and unity. Are you using the latest admob and 2022? We published another Android update a few days ago with the latest of both and can check how we handled it, if it helps.

#

I do remember it was not pleasant, the latest admob + unity + api changes didn't work out of the box, and I needed to install a manual gradle and android sdk

buoyant moat
#

is this only for the first game I publish or will I have to go through this for every game I want to publish?

#

bc my account is new

brazen birch
#

So each time

sage mauve
#

Hello, got a question about unity android build slow loading after splash screen i get a white screen for like 2sec - 6 sec i'm using unity 2020.1.1f1 and vuforia
i've tried to do an empty scene but got same problem and doing a boostrapper didn't solve this problem
i've enabled vuforia delay init and got fast loading about 1sec - 2 sec, so is it related to vuforia or just unity ?

buoyant moat
brazen birch
#

Only for newer personal accounts currently

#

If you switch to a business account it definitely will go away, but they also ask for certificates of the company now etc.

buoyant moat
#

Also I have another question regarding admob I am afraid of getting the bad traffic ban thing should I put a limit on how many ads a user can watch per min?

#

to avoid ban

#

or no need

brazen birch
#

Right now they are asking old accounts to provide IDs and tax identification. But I'm very surprised they don't have the same restrictions yet

brazen birch
#

But the risk is there. A competitor or someone malicious theoretically, could also spam the ads to try and get you into trouble too

buoyant moat
#

ill for sure keep that in mind then, thank you!

brazen birch
#

I'd definitely put at least a timer between, just as a precaution. That way if you do go over it's a few extra ads, not someone spamming 50

#

There are other games I've seen though that use multiple ad mediations, and rotating between them

brazen birch
#

But it's hard enough getting one working properly:D

buoyant moat
#

its so sad to realize that making a game is one thing, and then publishing and ads and marketing is a whole other world, exhausting. I just wanna make games🤣

brazen birch
#

Yeah I was not quite joking with the team this morning about pulling the ads from our mobile games and just making it company and game updates for our own stuff

buoyant moat
#

If only games could market themselves.

rain leaf
brazen birch
haughty escarp
lavish bolt
#

do i still need a mac or something to release a game in apple store?

brazen birch
#

Yup

#

Or macincloud etc

lavish bolt
open laurel
lavish bolt
open laurel
lavish bolt
open laurel
lavish bolt
open laurel
lavish bolt
#

nope im from germany

open laurel
#

ok better then, xiaomi could do the job for you

#

*not an advice

lavish bolt
#

Yes i know there are many cheap androids out there with good perfomence buuuuuut i dont want to buy them because i have a phone hahahah

#

but if i want to make mobile games i need to

#

i mean i can test my game on the unity app on apple store

open laurel
#

the time I test my weak phones, a lot of games cannot run properly on it 😄

#

unless its a AAA company such as supercell (brawl stars), riot games (LoL)

#

indie games, dont hope they even ran on my phone, because they have poor optimization

lavish bolt
lavish bolt
#

you seem to be a experience dev?

open laurel
lavish bolt
open laurel
# open laurel great path

mobile -> have to manage SDKs, plugin, Input cames from UI, complex UI Scaling, performance,wide range compatibility.

lavish bolt
#

hahaha

open laurel
#

just stick to PC for like 2 games, then you should kinda strong to go mobile

lavish bolt
latent violet
#

Hey guys... Quick question for the mobile devs who port to play store, there's a play console new policy about verification of account and there happens to be a deadline which you can set.. But does this apply to personal account type?... I wanna know cuz right now my account is on organization even tho it's just me but am planning to switch to personal that's why i wanna know now if the verification also applies to personal account type or just for organization type.. Thanks

brazen birch
#

I tried to get our verification in at the earliest date, just because it's an annoyance. But it'll be interesting to see how this impacts store apps. Between required API updates (that by default doesn't even work with their own admob), 20 user tests on personal accounts, new data and ad permission requirements, then locking down unverified accounts, it's going to drastically change what's in the store I think

latent violet
#

Am planning on switching platforms cuz so far... There's no hope in play store at this rate and the fact they do things most times automatedly is just annoying e.g suspension of app and no valid reason or why

#

Play store to me is dead.... I'll try out my hands of IOS App store and I hope things get well over there cuz alot of people are advising me to focus there rather than play store

brazen hazel
brazen birch
#

You usually zip project -> Google drive -> log into macincloud -> unpack and build

You'll need to setup xcode and all that fun stuff the first time though

limber jungle
#

Hi. I want to use the camera app of the phone to capture photos instead of implementing it inside the app and using the photo immediately after the capture. does anyone know how to do it?

#

These are my steps:

  1. Open Android device Camera from your Unity app.
  2. Capture Image.
  3. Preview captured image
  4. Callback function called with captured image file path after completed camera operations.
#
using UnityEngine;
using System.Collections;
using Windows.Media.Capture;
using Windows.Storage;
using System.Threading.Tasks;

public class CameraCapture : MonoBehaviour
{
    private PhotoCapture photoCaptureObject = null;

    void Start()
    {
        // Create a new instance of the PhotoCapture class
        PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated);
    }

    void OnPhotoCaptureCreated(PhotoCapture captureObject)
    {
        // Store a reference to the PhotoCapture object
        photoCaptureObject = captureObject;

        // Create a new CameraParameters object
        CameraParameters cameraParameters = new CameraParameters();
        cameraParameters.hologramOpacity = 0.0f;
        cameraParameters.cameraResolutionWidth = 1024;
        cameraParameters.cameraResolutionHeight = 1024;
        cameraParameters.pixelFormat = CapturePixelFormat.BGRA32;

        // Capture a photo asynchronously
        photoCaptureObject.StartPhotoModeAsync(cameraParameters, OnPhotoModeStarted);
    }

    void OnPhotoModeStarted(PhotoCapture.PhotoCaptureResult result)
    {
        // Check if the photo mode was successfully started
        if (result.success)
        {
            // Create a new StorageFile object
            string filename = string.Format("CapturedImage{0}.jpg", Time.time);
            string filePath = System.IO.Path.Combine(Application.persistentDataPath, filename);
            StorageFile file = await StorageFile.GetFileFromPathAsync(filePath);

            // Capture a photo asynchronously and save it to disk
            photoCaptureObject.TakePhotoAsync(file, OnCapturedPhotoToDisk);
        }
        else
        {
            Debug.LogError("Unable to start photo mode!");
        }
    }

    void OnCapturedPhotoToDisk(PhotoCapture.PhotoCaptureResult result)
    {
        // Check if the photo was successfully captured and saved to disk
        if (result.success)
        {
            // Call your callback function here with the captured image file path
            string filePath = result.resultFile.path;
            YourCallbackFunction(filePath);
        }
        else
        {
            Debug.LogError("Unable to capture photo to disk!");
        }

        // Stop the photo mode
        photoCaptureObject.StopPhotoModeAsync(OnStoppedPhotoMode);
    }

    void OnStoppedPhotoMode(PhotoCapture.PhotoCaptureResult result)
    {
        // Dispose of the PhotoCapture object
        photoCaptureObject.Dispose();
        photoCaptureObject = null;
    }

    void YourCallbackFunction(string filePath)
    {
        // Your code here
    }
}

#

probably this is the solution.

wicked thistle
#

Hello. Is anyone able to help me Gradle?

brazen birch
wicked thistle
# brazen birch Best to post the error / log 🙂

So, I must have put the zip64=true in the right place, I hope, cause I'm getting this error: * What went wrong:
A problem occurred evaluating root project 'Gradle'.

Could not find method shadowJar() for arguments [build_3v985ozfhyh23p6tkrrcsbrwd$_run_closure2@6bfb6ac6] on root project 'Gradle' of type org.gradle.api.Project.

#

I dl'ed the shadowjar plugin, but now I don't know what to do with it or if i'm even going down the right road.

#

The whole thing started with the error during build about 'archive's size exceeds the limit of 4GByte" thus I had to activate the shadowjar zip64=true which lead me to the error above.

brazen birch
#

Hmm, if it's over 4GB, that's a definite problem.

#

Ah that's why you are going to zip64

#

I'm assuming it is the streaming assets?

#

The downside is Google will also reject the APK for being oversized (if submitting to google).

wicked thistle
brazen birch
#

I know the official answer is asset bundles. But yeah hacking gradle to do bigger archives may work

wicked thistle
brazen birch
#

Google will block apks > 100mb. And will allow OBB files < 2GB

brazen birch
#

The right answer is going to be finding all the assets, and combining them down to asset bundles / addressibles. But 4GB is very large. So I'm wondering if some files aren't compressing.

I have to done this in a few months, but you could manually run gradle with the zip64.

wicked thistle
#

No, that's ok, thanks. Solo game building is extreme enough without all this behind the scenes stuff. I just want to hit the build button and have it work the way it should.

#

I personally think gradle causes more problems then it solves. My game used to compile fine before they implimented it.

wicked thistle
fallen compass
warm isle
#

Hello!
How can i make my game fit to scren resolution but keep the pixel ratio?
Ex: if i have a 16:9 pixel ratio, but my screen is 2080x1080p(which is 130x16 X 120x9. I want it to scale to 120 pixels on each axis, but if one side is bigger to change the camera size, not stretch it

brazen birch
#

At least that's how I'd tackle it. The phone won't allow you to change the actual screen resolution, so you'll have to fake it

#

A simple example is to use a layout group, and set only the middle panel size. Let the rest be black and auto scale. That would automatically lock in a specific aspect ratio and blackout the rest. Just keep in mind you'll need other UIs to follow that rule

#

I should note as well I've always done this through code, but I cant see why a layout group wouldn't work

sonic otter
#

I use a canvas scaler set to scale with screen size (set my reference res to 1920:1080) which kinda sets your aspect ratio. Then match to height on everything

fallen compass
sonic otter
#

oh derp, misread that

mental trench
#

i've been getting this error in the console for few days. i've tried to fix the gradle deamon issue inside my main project and even took help from chatgpt and bard but couldn't fix it. i then created a brand new project just to check if there's anything wrong with my unity itself so i created a new mobile 2d project and added android adaptive performance, then added a new project keystore and tried to build it (i had aab file selected too) and the build failed with this one too that you can see on the console screenshots. When i want to get only the apk to check the game on my phone the build works well and i get the apk but when i want to get the aab and publish this happens.

turbid narwhal
mental trench
plain stream
#

Hi. I'm having repeating issue with building apk for unity android that would work with Firebase.
I keep getting this error:

Unity : DllNotFoundException: Unable to load DLL 'FirebaseCppApp-11_4_0'. Tried the load the following dynamic libraries: Unable to load dynamic library 'FirebaseCppApp-11_4_0' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "FirebaseCppApp-11_4_0" not found

midnight musk
#

anyone know of what may cause an android app to crash load specifically for android 14 from the play store?
Currently on editor 2021.3.7f1, tired using API level 33 & 34, both having the same crash.

#

trying to install an android 14 emulator to test right now because none of my test devices currently are available to install android 14

buoyant moat
#

Hello, how much limit is recommended to set, In order to avoid the traffic violation thing from google ad mob, and also is it better to limit ads from google ad mob or from Unity?

full pagoda
mental trench
#

Brother, if you have a minute. So could you please connect to my computer via remotedesktop.google.com as I can't set it up. Of course, if there is free time to help.

midnight musk
haughty escarp
#

Hello, @buoyant moat! We're getting crazier than ever with Google AdMob. A few days ago everything seemed to be working fine, but now we are getting some errors in Logcat en no ads shown! Here's the log:

#

"Code": 3,
"Message": "No fill.",
"Domain": "com.google.android.gms.ads",
"Cause": "null",
"Response Info": {
"Response ID": "null",
"Mediation Adapter Class Name": "",
"Adapter Responses": [],
"Response Extras": {
"mediation_group_name": "Rewarded_Android_Mediation"

#

Here's the line where it fails: InterstitialAd.Load(adUnitInterstitialId, new AdRequest(), LoadInterstitial);

#

We get this after loading the ad on app's first initialization

#

LoadInterstitial -> LoadAdError error

buoyant moat
#

But your error is different than mine

haughty escarp
buoyant moat
#

At first I had a gradle error after updating google ads sdk, then i just deleted android folder resolved and all was good then unity is giving me a burst error

#

No my error isn't ads

tired lily
haughty escarp
tired lily
#

no fill means you asked Google for an ad, and nobody is willing to pay you to show the user one at that time. It happens a lot for low value users, but it can also happen because of ad exhaustion or suspected fraud

haughty escarp
tired lily
#

you can't. Most ad networks provide a developer flag, test mode, or special ad testing ad unit ids you can use

#

but you should plan to handle this error gracefully because it'll show up a lot

haughty escarp
tired lily
#

wait 2^(failed_tries_in_a_row) seconds and then try loading another ad

haughty escarp
limber merlin
#

Hey, whats the best way to scale down game resolution (lets say to make it 0,5 of original size) so that it only affects rendering of 3d objects but does not affect ui?

rain leaf
dusty willow
#

So can you just not build to IOS(to iphone) on windows?? I'm baffled how anybody releases to iphone on windows

rain leaf
#

afaik, you can only build to iOS using xcode, and xcode only available on macOS

haughty escarp
#

We’ve received this message about Data Safety form on Google Play Console

#

Does anyone now how to solve it? The app got rejected due to this

haughty escarp
#

Any idea @buoyant moat @tired lily?

tired lily
#

it sounds like your data safety form is wrong. Those ad networks collect data on your users

brazen birch
latent violet
#

Hey guys, pls how do i update android sdk to latest ones... I my project... It's capped at android 11 and my device is at Android 13...so how to update it, am on unity 2021.1.24f1

buoyant moat
#

and everything worked out fine

onyx kettle
#

My IAP button works correctly. As far as I can tell, my restore button is also set up correctly.
However, hundreds of customers are reporting that when they re-download my game, they lose their in-app purchase and the restore button does nothing. I just deleted my game from my iPhone and reinstalled it - sure enough, the IAP is missing and the restore button doesn't work. If I click the purchase button again, it asks if I want to buy the IAP again.
I'm going a little crazy here, and my game is now flooded with 1 star reviews from angry customers. I feel terrible. If someone could help me it would be greatly appreciated!
Please let me know if there's more info I can provide. Thanks so much!

tired lily
rain leaf
onyx kettle
#

It's non-consumable. The "consume purchase" checkbox means that the IAP is "used" after the customer purchases it.

#

Apparently the Restore button works for some of my customers, but not others. It doesn't work for me

brazen birch
#

These look like custom scripts under those buttons. So not enough info to help. But I'd start by seeing what the debug log says when you click the button and the reason why it is giving you the message. Is the app store saying the inapp wasn't purchased? If it's a nonconsumable the app store should tell you itself it was already purchased and not let you do it a second time. The sdk and platform you are seeing the issue on may matter as well.

haughty escarp
#

We've succesfully done the implementation between Economy, Unity IAP and Google Play Store (Android)

#

But it's getting crazy on iOS, because we don't know how to validate the receipts

#

Documentation is not helping...

#

Does someone has a workaround for this?

dusty willow
#

question for y’all. what’s the oldest mac i could go with for iphone builds? reaching out to friends for old mac desktops/macbooks under the assumption that it doesn’t have to be atleast a certain year

river roost
#

@dusty willow you will need to be able to run a certain xcode version which will require a certain OS version. So best check what the current requirements for that are.

dusty willow
#

I see. haven't found a good resource on that. This post references macbook 2017. https://forum.unity.com/threads/oldest-mac-device-for-ios-build.1516442/
There's also this on the asset store but apparently you need to use on a mac one time before it will work.
https://assetstore.unity.com/packages/tools/utilities/ios-project-builder-for-windows-15522

Do ya'll just have a windows and a mac or what do you do? Just release for one?

I'm sure this is a popular rookie topic but I'm curious what you guys do

haughty escarp
#

If someone has worked with IAP for iOS, we'll appreciate any help regarding Receipt Validation 🙏🏻

brazen birch
# dusty willow I see. haven't found a good resource on that. This post references macbook 2017....

The devices go out of date all the time, so there really isn't a list. Usually xcode requires the latest OS. So if it doesn't support the latest OS you are out of luck.

We can't use apple devices day to day. We do a lot of XR and apple just can't be used for VR.

In our case the team mostly has windows i9 / 3080 or some variant. Then we have a bunch of newer Macminis and MacBooks that they have just for apple builds. We only have a handful of team members that actually do builds, so the apple things are only needed by 3 or 4 people

#

But for most people, macincloud works early on, or a lower cost Mac mini

#

Get one too old and you are out of luck. Get one kinda old and you'll be out of luck in 3 to 6 months or so.

tired lily
dusty willow
brazen birch
rain leaf
grizzled tangle
#

Hi, I start working on a game but I'm struggling to set up the External tools. I have these errors and I don't know how to solve them can someone help me please? I tried everything from the internet nothing seems to work, my unity version si 2022.3.5f1

grizzled tangle
#

is there someone that can help?

haughty escarp
haughty escarp
#

We decided to build from a Mac instead of Windows and we got it

#

And this is what is included in the documentation:

#

We've tried appleTransactionReceiptBase64, appleTransactionReceipt and purchaseEvent.purchasedProduct.receipt... but nothing works

#

The response expected (as documentation says) must be like this:

#

Not a JSON, it's an ASN.1 with other format

#

public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs purchaseEvent) {
string appleTransactionReceipt = default;

if (Application.platform == RuntimePlatform.IPhonePlayer ||
    Application.platform == RuntimePlatform.tvOS) {
    string appleTransactionReceiptBase64 = appleExtensions.GetTransactionReceiptForProduct (purchaseEvent.purchasedProduct);
    
    byte[] bytes = Convert.FromBase64String(appleTransactionReceiptBase64);
    string appleTransactionReceipt = Encoding.UTF8.GetString(bytes);

    // ....

    string receipt = purchaseEvent.purchasedProduct.receipt
    RedeemAppleAppStorePurchaseArgs args = new RedeemAppleAppStorePurchaseArgs(
            ecomomyRealMoneyPurchaseId, 
            receipt, 
            localCurrencyInt,
            product.metadata.isoCurrencyCode);

    RedeemAppleAppStorePurchaseResult result = await EconomyService.Instance.Purchases.RedeemAppleAppStorePurchaseAsync(args);
#

How do we have to integrate this using Economy?

grizzled tangle
#

I don't understand at all the last question

grizzled tangle
#

@haughty escarp not working is there a unity version that has no problem with these settings because I'm sick of trying to fix this and still doesn't work

haughty escarp
grizzled tangle
#

oki 😄

tired lily
haughty escarp
tired lily
haughty escarp
tired lily
#

Maybe the flow is different for you? But in ours, it's like this:

  1. Unity IAP to make the purchase. Receive a transaction id. Purchase is pending
  2. Validate locally
  3. Validate remotely with the app store endpoints above
  4. Confirm the purchase in the app once validation is successful. There's a lot happening for us since we have our own infrastructure, but essentially we're rewarding the player with their purchase
    It looks like maybe the last 3 steps are done for you based on the docs, but you should still be able to snag that transaction id and verify manually yourself. You can probably get more detailed info about what went wrong if it fails, in case Unity's solution is giving you a misleading error
maiden wadi
#

helllo

tacit escarp
#

Hi Guys!
I am using Ironsourse Mediation with admob ad network and I want to integrate CMP. what is the best and easy to integrate sdk for cmp in unity3d?

loud peak
#

Hey

#

I am building a game in unity for ios and android and the game has googleads which works fine in android but when i build it for ios then unity doesn't generate framwork files of googleads in xcode build

#

adding googleads sdk manually in framework gives errors

#

and i have also changed unity version and googleads version

#

nothing works

#

i compile the xcode project file of my game with unity 2019.4.15f in my windows then i try to build the game with xcode files in mac.
and btw unity 2019 has too many bugs in mac so i can't use it in mac.

buoyant moat
#

hello everyone, a little silly question but where do we reward the player here?

buoyant moat
#

I figured it out its here

indigo elbow
#

does someone how to fix this? i was building mobile game and i always have this

indigo elbow
#

I think is those

iron acorn
#

Details...

#

You know you can click the error and there would be more text at the bottom, right?

indigo elbow
#

Oh

indigo elbow
brazen birch
# indigo elbow

I'm not sure how you are going to fix this. But the API target 33 needs you to accept the license terms, and you can't really from Unity

brazen birch
#

But very hard to explain over discord

indigo elbow
#

you can tell me how to fix instead of explaining

brazen birch
#

The best way, is to install Android Studio. From there you can use Window > Android SDK (there are two toggles, one for the SDK and one for the build tools). I'd install API 33, and 34 from there to a custom folder (I.e. C:\dev\android\sdk.

That will let you bypass all the Unity command line installers for sdks and build tools and future proof you.

Then in Unity you need to go into the Editor preferences. Copy the old SDK path in case you ever need it, and point it at your manually installed SDKs.

brazen birch
# indigo elbow you can tell me how to fix instead of explaining

Sorry for the slow response, on my phone :D. But that'll let you bypass Unity and use a nice GUI to manually manage all those versions going forward.

As you get comfortable with ADB, it'll also let you install, manage and work with your android phone more directly

#

You can use it for all kinds of things, retrieving files, device logs, managing versions, Checking manifest files and signing keys etc.

But more immediately it'll let you install SDK 33 and 34 and get a nice gui if there is an error

#

Tldr; manually install the SDK

indigo elbow
#

in hub?

brazen birch
#

No, that is for Unity. I'd manually install Android Studio from its website and bypass the Unity installer

indigo elbow
#

ok

brazen birch
#

Basically, Unity installs the Android SDK behind the scenes. But it does it silently, so if it breaks or misbehaves it is tricky to fix it...

So my advice is to bypass that and install the actual
Android Studio so you can manage the SDks yourself.

It's very quick to do if you know how, but a lot harder when you don't, and just hard to explain well over discord

indigo elbow
#

@brazen birch

brazen birch
#

Yup that's OK

indigo elbow
#

what should i choose?

#

hello?

brazen birch
indigo elbow
#

don't send?

#

ok i already click one

brazen birch
#

It doesn't really matter what you pick for any of these tbh

indigo elbow
#

ok

brazen birch
#

Once it's done, and launches, you want to go Window > Android SDK I believe

indigo elbow
#

how long is this?

#

or should i cancel it?

#

@brazen birch so i did cancelled it and i got it

brazen birch
#

It may have been customize but that's just the what do you want to do wizard screen.

indigo elbow
#

God damnit ok maybe I should watch a tutorial or something with this

indigo elbow
#

so i downloaded 2021 version of unity and i got these errors

indigo elbow
burnt nexus
#

No clue, never used Gradle

#

Better wait for someone else to help

indigo elbow
#

does someone know how to fix this error?

#

this is unity 2023

burnt nexus
indigo elbow
#

oh yeah

#

i use that app to make my projects

#

i mean program

#

anyway the error says about like il2cpp

#

that i don't want to add that

burnt nexus
#

Do you have il2cpp in your project or are you using Mono as your backend?

indigo elbow
#

mono

burnt nexus
#

Prolly not the cause of the error but could try changing it to il2cpp

indigo elbow
#

what

#

are you sure?

burnt nexus
#

They will be able to mod it, albeit maybe they'll have to deobfuscate it more

#

But you should still try changing it to see if it's the source of the issue

indigo elbow
#

how can i change mono to il2cpp

#

to fix this

burnt nexus
#

Also a quick side note: il2cpp builds take quite a bit longer so

burnt nexus
#

Or a Google search will also do

indigo elbow
burnt nexus
#

"Player Settings" in the bottom

indigo elbow
#

ok

burnt nexus
#

I'll go now so if you need help still you can google/wait for others to answer

#

Gl on fixing this pesky bug

indigo elbow
#

ok

iron acorn
grand windBOT
iron acorn
#

Also, modding or project decompilation isn't really an allowed topic on the server so we can't really help you if the issue is related to that.

worldly pumice
#

is this mean i need other JDK version?

kindred crag
#

Hi, is it possible to export a rendered 3d model so that I can interact with it on android app?

mellow oasis
#

Hi guys, do you now any good place to get 20 people as testers for my mobile game? I need it bcs of google play :/

brazen birch
kindred crag
#

Folks there will help ya if you need

brazen birch
mellow oasis
#

thanks much!

glossy sluice
#

Hi. I'm having trouble enabling v-sync for Android Platform. I tried a few methods, but all seem to be unsuccessful.. Can I get some sort of guidance on enabling VSync? Any solution or advice would appreciate it.
I can also tell methods I tried enabing v-sync:

Player Settings > Quality > VSync Count = Every V Blank
Through scripting: QualitySettings.vSyncCount = 1

frozen vapor
indigo elbow
#

Fine

tired lily
glossy sluice
glossy sluice
#

hope I am not mistaken

tired lily
thorny vault
#

Could anyone clear my doubts? I'm trying to implement Unity Ads, but I follow everything step by step but the banner only loads in unity, when I test it on the emulator or on my cell phone it says that it was not possible to load the banner. However, the app has an internet connection working properly. Link to the tutorial I followed: https://www.youtube.com/watch?v=seTvVkaU2dk&ab_channel=Mir

Mir

💡 Unlock the full potential of your game's revenue with our comprehensive Unity Ads integration tutorial! From initializing the ads to finalizing the settings, this step-by-step guide covers everything you need to seamlessly integrate Unity Ads SDK into your project. In this in-depth tutorial, we'll walk you through the entire process, starting ...

▶ Play video
wicked zealot
#

Did you follow a tutorial or something? Both tasks say that they couldn't find the IronSource Mediation SDK.
I've only ever used IronSource once, to test it out, but I didn't run into that problem

latent violet
#

Hello guys... Pls i need help, does anyone have any template or CSV that already have all data setup for Data safety in play console?

#

Play store said I need to setup my data safety and I don't have any clue on that, my game has ads and they said since my game has ads, I need to set up the data safety but am told I should ask for a already made template or CSV setup... So pls if anyone can help me out I'd really appreciate

half lake
#

Hello! I had a game in the play store that got removed for causes that I don't fully understand. I asked quite a time ago here what was the issue, and we came with the result that the problem was that I was using a sdk from unity ads which collects persistent device identifiers. I removed everything about the ads from my game, but something's still there not letting me upload it again. Here I'll upload some screenshots from the message that google sent me, thanks fro the time.

tired lily
#

do you have unity ads or any aar's related to Unity ads in your project at all?

vestal heron
#

hi, can someone tell me what's the best way to track a user's location at all times, so that if they go near a certain location, I can send them a notification?(for android)

half lake
tired lily
brazen birch
# vestal heron hi, can someone tell me what's the best way to track a user's location at all ti...

I wouldn't use Unity for it. But a background service checking the GPS location periodically - you may not be allowed to do that in a background service - you may need special permission from google / apple for that. You'll need to disclose the tracking in your data form and if storing it they will ask you to explain how a user can request deletion. Finally, you'll need to recheck permissions and keep battery use absolutely low - over time the GPS permission will get removed by the OS, and if you use too much battery it will terminate it.

mild warren
#

using gpgs and opening a saved game for the first time will throw success for opening and give me an empty file or an error?

rain leaf
snow prism
#

hello everyone,

i want to my unity project (included firebase and photon fusion) build to iOS platform. first i solved "'GoogleSignIn/GIDSignIn.h' file not found" error, after that occur new error on XCode 15. This error is "Framework 'FBLPromises' not found". How can i solve this?

restive aspen
#

don’t cross post tho

snow prism
restive aspen
#

try to open podfile and then type pod Promises

#

to open podfile: open Podfile in the directory of your project

cyan rose
#

Hello i have those errors that appear suddently in my project when i try to build it to android, in the past i could build it without problems but now it fails everytime even if i change versions of unity, can someone please tell me how to fix this issue?

brazen birch
latent violet
cyan rose
cyan rose
latent violet
#

@cyan rose try building again with good internet connection, it may help in updating or downloading the gradle

edgy gulch
#

just renewed my apple developer membership and 🫠

#

whenever i hit account it redirects me here

brazen birch
tired lily
#

no, you need to be clearer about what's going on. If "not letting me upload it again" means you can upload it, then submit it to the review store and it got rejected, you should say that

lost magnet
#

Hey everyone! I'm new to the Discord. Anyone have any good advice for getting your first iOS game up on the app store? Is there a good checklist (I've seen the official one and this one from Buildfire seems comprehensive enough):

https://buildfire.com/how-to-publish-an-app-to-the-app-store/

But more generally if anyone has gone through this before and has any tips/advice or pitfalls that the listacles like this may not capture, I'd love to hear. Thanks

lost magnet
haughty escarp
#

Hi, guys! We’re still integrating In-app purchases into our iOS game, because everything has worked fine in Android

#

We are currently facing this error “EconomyAppleAppStorePurchaseFailedException: The product ID specified in the configuration does not match the product ID specified in the receipt”

#

This only happens on two of the 8 purchases, and the IDs specified seems to be fine… 😱

#

Any advice, please? 🙏🏻

tender cloud
#

Hello guys, I'm testing my game on Android 13 (API level 33)
And I see that when I tap the back button, it doesn't respond most of the time (meaning that I have to tap it multiple times)
Here's the logic I use, I have no issue with other API levels

    void Update()
    {
        // Make sure user is on Android platform
        if (Application.platform == RuntimePlatform.Android) {
            
            // Check if Back was pressed this frame
            if (Keyboard.current.escapeKey.wasPressedThisFrame) {
                /* Do leaving stuff */
            }
        }
    }
velvet ermine
#

Hey, does anyone know what Unity renders as first screen if Splashscreen is disabled? Currently getting a green screen on Android...

velvet ermine
tender cloud
barren dock
#

Do anyone knows how to solve these gradle build error:

queen kayak
#

Hi guys, i´m trying to export my game to android, however i´m having issues with exporting, i´ve tried installing a custom sdk, jdk, gradle and ndk instead of the ones unity provides but an error pops up always "Failed to update AndroidSDK package list. See the console for details" This error pops up when i use the custom SDK i installed in android studio, when i use Unity´s built in SDK it pops up the "Gradle build failed" error, i´ve been trying non-stop since yesterday, but i can´t seem to solve this issues, is there anything i can do to solve this? i´m using Unity 2022.3.10f1, but i´ve also tried with Unity 2021.3.33f1 and Unity 2022.3.16f1 and i still get the same errors

worldly pumice
queen kayak
#

when i use unity´s built in SDK it gives me these errors

worldly pumice
queen kayak
#

oh.. D:

urban moon
#

i have manually cleared the plugins folder and resolved now on build i get duplicates for kotlin

org.jetbrains.kotlin.kotlin-stdlib-jdk7-1.6.0
org.jetbrains.kotlin.kotlin-stdlib-jdk8-1.6.0
org.jetbrains.kotlin.kotlin-stdlib-1.8.0```
Edit: it works when i remove 1.6.0 before each build
upper lynx
#

Hi could someone help with this error?

half lake
obtuse turtle
#

Hi! I am trying to hide the input field above the android keyboard when pressing on text-fields
All I could find online and reading documentation was to use: TouchScreenKeyboard.hideInput = true;
wich seems simple enought haha, but for some reason is not working for me! The preview field keeps popping on my game and I don't really understand why
I have put this line globaly at the begining of the game, not sure if I am missing something.. Has anyone achived this successfully?

fallen compass
# upper lynx

Photos are a really stupid way to provide info when asking for help, especially when they're as poorly taken as this atrocity.

Either screenshot the console, or just copy and paste the text (first into google..)

fallen compass
obtuse turtle
fallen compass
#

Ah, I haven't touched that, as it's not got feature parity... hopefully it has something similar

tired lily
dusty willow
#

Still falling down a rabbit hole in search for a way of building to iphone on windows.

I've found documentation and tutorials on how to do it, but if it's worked for anyone they aren't talking about it. Somebody commented on one of the videos I watched on the topic saying they used something called VMware to make a virtual machine, which the video poster responded to with something along the lines of "shush that's illegal".

TLDR: Not sure if I'm being gas lit

Video tutorial without many testimonials
https://www.youtube.com/watch?v=PqOZBpeWK7o&t=636s

Written tutorial
https://nima-jamalian.github.io/UnityWindowsiOS/

dusty willow
rain leaf
jolly hollow
#

how do i make very small text readable on mobile/editor

neon thicket
#

Are you using text mesh pro?

sweet quail
#

How can i using Enter keyboard to execute the ok button (red circle) on android build, this white box show when i click to the input field right there, is there anyway to hide them

little kiln
#

Hello Guys , I am facing a problem in developing my runner game for mobile, and this problem is that I want to make a generator for infinite levels that do not end, like runner games, so that you know more about the thing I mean. I mean, I do not want to make infinite tiles. I just want to make a generator that creates stages. Whenever you complete a stage, he gives you another stage, but with different things, meaning the obstacle will be in a different place, and the money is in a different place, and so on, and I want automatically. I mean, whenever you complete a stage, he gives you another different stage, and changes the number of the stage or the number of the stage. For example, when I finish one stage, they are given a stage. Randomly, he writes number two and notes: I never want the stages to be the same.

urban moon
#

would it be recommended installing the "ads mediation" (com.unity.services.levelplay) package when using external iron source sdk already ?

elder wren
#

Has anyone encountered this while trying to install a .apk file?

reef stratus
#

Hey is is listed anywhere what versions of Unity support what Android API levels? I want to target the max api level (33 afaik) but I also want to use the oldest version of Unity possible (im updating an old project)

latent violet
elder wren
#

omfg...

#

wait i thought it was "cancel install"... y tf are the "cancel" and "install" buttons so close to each other? 😂

latent violet
#

That's how it is

buoyant moat
urban moon
buoyant moat
urban moon
#

i wouldnt recommend tough

#

as i have to manually remove 2 files before each build

#

xD

buoyant moat
#

Lol

urban moon
#

thats also the reason im asking if i should have used that package instead of iron source sdk

harsh hedge
#

Currently working on a smol unity game for a uni project, and I would like for it to be run after pressing a button in a regular android studio activity, but I've had diffculty even finding guides that explain it, as none of them go over how to add them to an existinf android project. Does anyone happen to know how this would be done?

#

So far I've seen that you can export an apk, or export it as an android studio project. But I'm unsure how you can go from that to putting it on an existing project

tired lily
harsh hedge
#

just realised, it says it requires unity 2023, when I'm on 2022. Will it straight up not work otherwise?

#

I can do the whole exporting and loading it up in android studio so i'd hope the rest works

#

so when you export it, everything above the unityLibrary folder can be whatever already exists within the app, but you only need the unityLibrary copied over from what you export?

#

this is taken from an article on medium btw, not my own just yet

harsh hedge
#

following it and ended up getting this which is a bit annoying

tired lily
#

I haven't done this myself btw, just read about it

harsh hedge
#

just says this

#

but it seems to be working for me anyways

#

besides this error above

tired lily
#

the very next line is [Note] For Unity versions from 2019.3.0b4 to 2022.2.0a17 use 19LTS-21LTS branch. For Unity versions from 2022.2.0a17 to 2023.1.0a16 use 22LTS branch. though

harsh hedge
#

I must be using one of those then by happenstance

#

but I can't wrap my head around this error it's throwing up

shrewd lotus
thin spindle
#

Hello Fellow Gamers and Game Developers!
I'm in the process of doing a closed test for my android game and require 20 testers to be opted into the test for 14 consecutive days.
If this is something that interests you then send me a message so we can exchange email so I can add you to the testers list and send you a link to opt in and find the game.
I am also willing to opt into other Devs closed tests in return.

P.S. I have limited the amount of levels in the game for this test as to not spoil it before release

harsh hedge
#

not sure why but unity can't find my local gradle install when I've clicked the same path that android studio itself uses

harsh hedge
#

And I'm still getting this error. I could run both projects separately just fine, but as soon as I import the unityLibrary module it breaks

harsh hedge
#

how long is this task supposed to run for when syncing a unityLibrary module?

harsh hedge
#

8 minutes it seems X/

harsh hedge
#

how do you properly set up the gitignore for an android studio project that uses a unityLibrart module?

#

I don't want to push too much but I don't know what is needed

#

got all these ones but I don't know what I can properly push to get so pulling it works

#

even then I can't even push it to github at all because this file is too big to put on github

harsh hedge
#

should I just gitignore the whole folder unityLibrary so you have to export from unity instead of pulling?

half lake
half lake
half lake
urban wadi
#

Hi guys. Can someone help me with these errors? I want to build APK

fallen compass
#

You have to click each one and read the stack trace (the information at the bottom)

urban wadi
#

Ik, but idk how to solve it

sonic otter
#

build errors like that typically mean you're using the wrong jdk

#

I have a jdk for android studio separate from unity's jdk. I have to use 2 because my android studio has different dependencies

humble vault
#

One question, how do I fix this error I have? I haven't been able to create a project for several days

sonic otter
#

do the project files exist?

#

did you move the path?

#

is the drive dying?

limber plaza
wispy grotto
#

Anybody have idea how to solve this problem?
A mooved files on an older project from Resources to StreamingAssets, and I get this problem. I deleted the meta files of them, the library library, but keep getting the same problem with the same 2 files and with the same GUID in the error. I'm trying to build it into Android.

Starting: C:\Program Files\Unity\Hub\Editor\2022.3.16f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player618d7779.dag" --dagfilejson="Library\Bee\Player618d7779.dag.json" --profile="Library/Bee/backend6.traceevents" Player
WorkingDir: D:/Programming/Unity/Gacha-Animator
[E] duplicate node guids: CopyFiles D:/Programming/Unity/Gacha-Animator/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/assets/Sprites/sprite39-138-3.bytes and CopyFiles D:/Programming/Unity/Gacha-Animator/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/assets/Sprites/sprite37-113-0.bytes share common GUID (61225d882aa0c146bc83125cfb66f15e)
[             ] Require frontend run.  Library\Bee\Player618d7779.dag.json failed to freeze
Starting: C:\Program Files\Unity\Hub\Editor\2022.3.16f1\Editor\Data\Tools\netcorerun\netcorerun.exe "C:\Program Files\Unity\Hub\Editor\2022.3.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\AndroidPlayerBuildProgram.exe" "C:/Program Files/Unity/Hub/Editor/2022.3.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/Bee;C:/Program Files/Unity/Hub/Editor/2022.3.16f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player618d7779.dag.json" "Library/Bee/Player618d7779-inputdata.json" "Library\Bee\buildprogram5.traceevents"
WorkingDir: D:/Programming/Unity/Gacha-Animator
ExitCode: 4 Duration: 0s74ms
ExitCode: 0 Duration: 1s272ms
iron marsh
#

Is it at all possible to develop for IOS without having a mac to submit the game to apple?

I have an iphone but from what i understand you need a mac. Which i dont currently have.

wispy grotto
honest tapir
#

Hello, my code is running very well in the editor, but when i build and run i got some random error of NullReferenceException that is only on the build and i dont have this error on editor

    {
        canvas = GameObject.FindGameObjectWithTag("MainCanvas").GetComponent<Canvas>(); // Assuming there's only one canvas
        Carousel = GameObject.FindGameObjectWithTag("Carousel");
        OnTop = GameObject.FindGameObjectWithTag("OnTop");
        scrollRect = Carousel.GetComponent<ScrollRect>();
        ContentCarousel = Carousel.transform.GetChild(0).GetChild(0).gameObject;
    }

    public void OnBeginDrag(PointerEventData eventData) //IBeginDragHandler
    {
        if (!IsHoveringOverCarousel(eventData))
        {
           this.transform.SetParent(OnTop.transform);
        }
       scrollRect.horizontal = false; // <-- This is the ERROR
    }
#
2024/01/09 18:22:20.089 17255 17279 Error Unity   at Tile.OnBeginDrag (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <00000000000000000000000000000000>:0 
2024/01/09 18:22:20.089 17255 17279 Error Unity   at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 
2024/01/09 18:22:20.089 17255 17279 Error Unity   at UnityEngine.EventSystems.PointerInputModule.ProcessDrag (UnityEngine.EventSystems.PointerEventData pointerEvent) [0x00000] in <00000000000000000000000000000000>:0 
2024/01/09 18:22:20.089 17255 17279 Error Unity   at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 
2024/01/09 18:22:20.089 17255 17279 Error Unity   at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 
2024/01/09 18:22:20.089 17255 17279 Error Unity UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
brazen birch
#

Or it is losing the reference, such as can happen with a singleton etc.

Using FindObject is really a last resort thing. You should set those references via public references in the inspector.

brazen birch
honest tapir
brazen birch
iron copper
#

Hey, I am making a game and need 20 testers for the google play store requirements to publish it. Anyone interested DM me your email (must be gmail) so I can send you the invitation to the test for android. Thanks!

#

The game is called Fist Project, I can share a web version but not sure if i can send links here

#

Or if anyone knows a good way to get the 20 testers, it would help a lot

humble vault
sonic otter
#

" I know I didn't install Unity and when I installed it" off of this just reinstall unity

#

and make sure you install a version with it

humble vault
#

I don't think it works because I was reinstalling it several times, until I formatted my computer lol

brazen birch
iron copper
#

its just a webgl build

brazen birch
iron copper
#

thanks, i will look that up

low maple
#

does anyone have like a chart of a mobile game using unity cloud saves so i can make myself an idea of how much id have to pay ? something like analytics for it or some data ?

regal walrus
#

guys on 2022.3 I am trying to build on .apk , but when I click on build it releasing as .aab , how I can make it .apk?

brittle thunder
#

Can somebody please help me with android sdk, its says that it cant update Android SDK ive done everything i gave up please help

thorny panther
# brittle thunder Can somebody please help me with android sdk, its says that it cant update Andro...

you have to look the target device, what is the latest updateable version of android, coud be 5.1 lolipop than its harder but possible to find a old sdk they build *.APK , not aap .
Middle Versions are easy and default if you use emulator, developer mode: enable no / unknown signature . not only version but apk 32 bit or 64 that is the question.
alternative android stores have a lot version sdk but also 32 / 64 bit - some of few device even 64 bit works only apk in 32 bit. Start high 64 to lower till 32 bit android by try.

thorny panther
# iron copper its just a webgl build

always wonder where is the webgl unity-plugin/flash/player for mobile it was not a premise of previous ea ceo, but to have a android player webgl+webgpu (kind of flash/player unity plugin installed) would speed up games for sure multithread for next next ceo. with a link press here to load with unity-flash-player-app (hardware accelerated sandboxed allow restrict reights decide battery usage gpu flags ondevice plugins webrtc connect ) instead building lot of versions apk, else stayin webgl 2 / webgpu is a bit slow await multithreads 8 core cpus not to use just 1 in browsers

rain leaf
urban wadi
#

Can someone help me with build?

#

nah, I spend 2 days and nothing

mighty rivet
#

Has anyone tried the Google Play Games PC Android Emulator? I am wondering how it handles Unity packaged games for dev purposes

ripe pivot
#

hi, anyone thats had to add bloom glow to your projects, how did you go about it? everytime i try, i loose 30fps

brazen birch
#

It's in the subtext of the error

brazen birch
ripe pivot
brazen birch
ripe pivot
brazen birch
ripe pivot
#

I’m only asking due to there not being much anyway and it’s put my projects at a dead stop

brazen birch
#

With built in, I used a great now depreciated shader set from the asset store, and have modified them to be more performant and I usually use those on mobile titles if I really have to

#

But I also use normal post processing in the built in renderer on our mobile VR projects without much overhead (keeping in mind to do so very sparingly). So it's not something I look into very often.

#

I'd probably start by looking for any non post processing full-screen shader effects for URP. Or benchmarking and testing any mobile post processing bloom equivilent for mobile.

ripe pivot
#

Wow okay thanks, didn’t realise a bit of glow would be so much effort. By any chance do you know any links or resources towards that?

slate nebula
#

Hello, I am strugguling with the Addressables Package, I have connected to Unity CCD and I have created and Addressable Scene, I am calling the scene with this piece of code
"
public void LoadSceneOnClick()
{
Addressables.LoadSceneAsync("Scenes/CharacterCreation.unity", LoadSceneMode.Single).Completed += (asyncHandle) => {
Debug.Log("Scene Has been loaded");
};
}
"
In unity editor play mode is working on i press the button but when I build the APK and run it I am getting this error "Assets/AutoBundles/Scenes/CharacterCreation.unity couldn't be loaded because it has not been added to the build settings or the assetbundle has not been loaded"

does anyone had this issue before?

tender cloud
#

Hi guys,

I have the following piece of code that I use in my Android game to leave it.
It's working well on different phones, but I recently changed mine which is on Android 13 and it detects that I hit the escape key like 1 out of 3 4 times

    // Update is called once per frame
    void Update()
    {
        // Make sure user is on Android platform
        if (Application.platform == RuntimePlatform.Android) {

            // Check if Back was pressed this frame
            if (Keyboard.current.escapeKey.wasPressedThisFrame)
            {
                Debug.Log("Key Pressed"); // I added this just for debuging
                previousState = GameManager.state;
                GameManager.Instance.UpdateGameSate(GameManager.GameState.Leaving);
            }
        }
    }

I have logged this

MIUIInput [KeyEvent] ViewRootImpl windowName 'com.company.game/com.unity3d.player.UnityPlayerActivity', KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=53889710000000, downTime=53889621000000, deviceId=-1, source=0x101, displayId=0 }, phoneEventTime=10:34:36.402
MIUIInput [KeyEvent] ViewRootImpl windowName 'com.company.game/com.unity3d.player.UnityPlayerActivity', KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=53890230000000, downTime=53890230000000, deviceId=-1, source=0x101, displayId=0 }, phoneEventTime=10:34:36.922

Meaning that the "key stroke" is detected. Is there a better way to do this ?

fiery elbow
spark flame
#

Anybody knows how to detect clicks from an on-screen Dpad for example in code?

bronze hollow
#

Hey guys, if there's any expert dev active on here, I could really use some guidance on URP and BiRP. Which is better for mobile, considering that I'm a solo developer and want a decent graphics/performance ratio without having to spend weeks on tweaking every single setting, and considering the fact that I rely heavily on assetstore assets

wicked zealot
#

Not an "expert dev", but I'd stick with BiRP for Mobile if you want to target low-end devices as well.
I didn't check URP performance on mobile for months, but the last time I did, BiRP had waaayyyyyy better performance (out of the box, without adjusting URP Settings).

The best thing would probably be if you create a Sample with the amount of Geometry that you're going to have in your Project and then build it once with BiRP and once with URP and compare the performance

bronze hollow
#

Yeah I really do want to work with URP since Unity is pushing it pretty hard

#

but fact is its a pain in the ass

wicked zealot
#

URP is awesome, I started using it exclusively, but I'm not targeting mobile anymore 😄

No jokes, my "Sample" a few months ago was a single LowPoly SkinnedMeshRenderer with an Animation playing, and BiRP gave me 60 FPS while URP gave me pretty bad stuttering.. for a single GameObject in a Scene..

bronze hollow
#

Yeah they say that URP is supposedly a lot "better" for mobile, but the content they're releasing for URP in their samples as well as other stuff is more for PC

#

Let's hope they have better optimization in Unity 6

wicked zealot
#

It would be great to get a "MRP".. Mobile Render Pipeline.. one that "just works" for any low/high end Mobile Device out of the Box 😂
But I'm still assuming that the "bad" URP performance was due to a lack of adjusting the settings properly, many people told me that it's "better" then URP when setup properly.

As said, it would be best if you'd just create a Sample and test it for yourself.

Oh, and forget about PostProcessing if you target Mobile.. 😅

bronze hollow
#

PostProcessing with URP* I have managed to use color grading, ambient occlusion, and bloom while retaining performance in BiRP

brazen birch
#

I'll second what is said above. I built and benchmarked a URP vs BiRP a while back. Saw BiRP still had better performance. And quickly realized URP is really just a make work project in thr VR space at least.

I have a few inherited projects from other studios that use URP, and they are stable enough. But I literally see zero reasons to use it right now.

fallen compass
#

I only use URP for mobile projects now

#

work and personal

low maple
#

so i have this problem where first time a new user launches the game the GooglePlayServices RequestServerSide Token is null and then if they close the game and open it again it works any idea why ?

low maple
#

its like first install start =fail then if i start it again it works

brazen birch
#

Maybe it isn't waiting for the request to finish the first time, second time is quick because it's cached

low maple
#
    private void LoginWithGooglePlayGames()
    {
        try
        {
            PlayGamesPlatform.Instance.Authenticate((success) =>
            {
                if (success == SignInStatus.Success)
                {
                    Debug.Log("#### - Login with Google Play games successful.");

                    Debug.Log("#### - Request Server Token Started");
                    PlayGamesPlatform.Instance.RequestServerSideAccess(true, code =>
                    {
                        if (!string.IsNullOrEmpty(code))
                        {
                            Debug.Log("#### - Authorization code: " + code);
                            Token = code;
                        }
                        else
                        {
                            Debug.Log($"#### - {code}");
                        }
                    });
                }
                else
                {
                    Debug.LogError($"#### - Failed to retrieve Google play games authorization code");
                    Debug.Log("#### - Login Unsuccessful");
                }
            });
        }
        catch(Exception ex)
        {
            Debug.LogError($"#### LoginWithGooglePlayGames - {ex.Message}");
        }
    }
#

it like returns empty

ripe pivot
#

Anyone here have any luck with glowing objects on mobile with good fps?

sonic otter
#

like realtime GI?

glacial saddle
#

Does someone have experience with unity ads? I need help with one thing, thanks <3

sharp stream
#

Every time I go to build my game for Android/Quest Standalone, this happens

#

And these are the headers of the three errors I get every time

analog plover
#

Show the full text of the third error

sharp stream
#

I fixed the third error, it had to do with importing dependencies for one of my plugins,

#

oh shit
I changed this line to have true instead of **MINIFY- something something** and it worked

bronze hollow
#

Question: Does making a landscape game drastically reduce the chances of its succecss?

fallen compass
#

No?

brazen birch
#

Especially not compared to your marketing, design, etc. Most users wouldn't know if it's landscape, portrait, or both until they purchase it.

foggy tinsel
#

Does anyone know if I have an iOS function which requires a usage declaration in a plugin (specifically ProcessInfo.processInfo.systemUptime which requires usage declaration due to the potential to track the user with fingerprinting https://developer.apple.com/documentation/foundation/nsprocessinfo/1414553-systemuptime?language=objc)

Do I need to declare the usage just from having the code in the plugin or is declaration only needed if the function is called? (I'm wanting to use the same generic plugin across multiple projects)

last verge
#

hello can anyone help me with a doubt cause someone is willing to buy my 2d mobile game for $200 i just dont know what should be the good price

nova imp
#

To exclude specific classes with reflection functionalities in ProGuard files in Unity for Android, you can use the -keep option in your ProGuard configuration file. For example, if you have a class called SomeClass that uses reflection and you want to keep it from being obfuscated, you can add the following line to your ProGuard configuration file:

-keep class com.example.SomeClass { *; }

Replace com.example.SomeClass with the actual package and class name you want to exclude. This rule will prevent ProGuard from obfuscating the specified class and its members, including those accessed via reflection.
My question is what exactly I should write. Just namespace and class name?

ripe pivot
#

If Post processing is not an option to have glowing objects in my mobile game, what have others done to get it to work?

rain leaf
#

you could just try 'shell' glow, it's like 'shell' outline shader but you render the shell multiple time with increasing size and decreasing alpha

tawdry flower
#

Why does profiler show texture size twice of the original texture? I'm trying to load 10-15 images and it just a. Doesn't Destroy the old textures and b. The size of textures are 2-4 times the size of the original image. (Og image 50kb, loaded from weh in unity image 1mb)

limber plaza
cyan ibex
#

hey, I'm having some issues building an app for iOS, it worked prior, but without changes it now shows (2D) a blank blue screen as if it was empty...
I tried changing up the scene order, going from release to development build, some playing around with the build settings but to no avail. does anyone have some ideas or a place to find more information? I'm happy to share some information or data 🙂 just would need to know what you want to see

mild warren
#

So as i understand for google play games services v0.11.1 you can't sign out?

#

what happens if i want to switch my account

ocean garden
sharp stream
#

check the Gradle Template Properties on in the Publishing settings in your project player settings

abstract flame
#

Hi I have this new error while trying to Build on Android, ChatGPT asks me to do things that doesn't solve the thing, I'm desperate, it's been 2 days I've been working only on this bug

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

What went wrong:
Could not determine the dependencies of task ':unityLibrary:mobilenotifications.androidlib:compileReleaseJavaWithJavac'.
Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-33 Android SDK Platform 33
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: C:\Program Files\Unity\Unity_Files\2022.3.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org/

brazen birch
#

This explains it a bit better

abstract flame
mild warren
#

Anyone have any ideas, why the hell my gpgs authentication suddenly stopped working?
I get this in logcat : Error AuthPII ywn: Long live credential not available

neat fog
#

Can someone explain to me what this message means? I've been looking for a solution online but nothing's worked

alpine grail
#

i see people referemces m_StoreController a lot, but how do i actually get data from it?

#

trying to get a .hasReceipt from a Product but i have no idea how to get that Product from m_StoreController

alpine grail
#

yeah, how do i make sure someone has a receipt for a product on googleplay and iOS?
this is surprisingly hard!

oak valve
#

I run the apk and it can't access it. It always crashes out. Does anyone know what it is?

ripe pivot
#

Has anyone used fast bloom from the unity store?

abstract flame
fallen compass
bronze hollow
#

Argument 1: cannot convert from 'UnityEngine.ParticleSystem' to 'System.Func<UnityEngine.ParticleSystem>'CS1503
Can anyone tell me how to fix this error

brazen birch
#

And post the code causing the error there

forest spruce
#

Hey guys, I imported google ads package and when it is resolving for android I get this error:

Gradle failed to fetch dependencies.

Failed to run 'C:\Users\Sebas\Documents\Unity Projects\Juego de los aviones - copia\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\Users\Sebas\Documents\Unity Projects\Juego de los aviones - copia\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:\Program Files\Unity\Hub\Editor\2021.3.29f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK" "-PTARGET_DIR=C:\Users\Sebas\Documents\Unity Projects\Juego de los aviones - copia\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:22.5.0;com.google.android.ump:user-messaging-platform:2.1.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=4.0.1"'
stdout:

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

stderr:

exit code: 1

I searched for solutions online and people said I should add JAVA_HOME to my environment variables, I did it but it still throws same error

brazen birch
ripe pivot
brazen birch
ripe pivot
brazen birch
ripe pivot
regal thicket
#

What's the generally recommended resolution for vertical orientation mobile game development? 1080x1920?

sharp spindle
#

i got error
u are can help me for fix this: Could not resolve all files for configuration ':unityLibrary:GoogleMobileAdsPlugin.androidlib:detachedConfiguration2'. See the Console for details.

slender hatch
#

can someone help me I keep getting this error when i try to build

jade pagoda
#

Has anyone experienced game not getting installed on a certain device?
While my Android game successfully got installed on many phones, I tried it on a single tablet and it didn't install. I checked the CPU of the tablet and it's also ARMv8, like my phone, which has the game installed.
What could be wrong?
It's Android 11, so no problem on API level as well.
Also I believe there's no problem with free space.

analog plover
#

"didn't install" isn't enough info to even guess why

#

see what logcat says

thin barn
#

Hey guys, I'm trying to build my test version of the game for ios, I finished the process in Unity and I've got the Xcode project, How do I build an IPA and make it public so everyone that I want can download it, I've heard there's a special store for a test version of apps, anyone knows what is it?, and how can I build and publish on it? or there is a way without using any store?

fallen compass
#

Upload to the appstore, then go to the 'testflight' tab in appstore connect for that app

marble jacinth
#

is there a way to use android studio to debug an app on a device? I can't find a project to open in android studio that'll get it halfway to the right UI for debugging on a device

marble jacinth
#

or is there a way to debug what assets are making it as far as the device? my APK seems a bit small, and I'm getting black screens with UI on them and missing UI textures

finite tiger
#

You can use Console Packages na?

gilded schooner
#

so while building games for android, is there any way that I can make these games to go directly into the Game Launcher?
The same way how most of the games we download will be get moved to Game Launcher

marble jacinth
#

is there a way of seeing what assets made it into an APK? unzipping it isn't enough

rain leaf
marble jacinth
#

cheers

jolly hollow
#

does android support .NET Framework and does such support AppDomain ?

arctic marlin
#

What is a "D-U-N-S" and why do I need a organization?
Organization sound so expensive and wrong because I am a small dev that is not even earning money with the products I made.
So why do I need a organization and how expensive is it to make and own one for google play?

fallen compass
#

You don't need one for google play

arctic marlin
#

OK its to high for me.
How can I disable my google play dev account because I dont agree with the new license agreements.

#

they always wanting from me so much and I literally have to dox myself in the public to get google play greenlight.
So I dont want to continue with it how I delete or disable my google play dev account without deleting my google account itself?

cloud flare
#

Hi everyone, I'd like to know how to make my 3d character move with a joystick (made from an image) and move the camera in 3rd person view by touching the screen. Can you help me?

brazen birch
#

And yes, they are starting to require proof of organization (same as Steam, etc). Or proof of personal identity. In 6 months, the only way to be on their store, is to send them documented proof of who you are. And yes companies are expensive, I have to also submit yearly taxes, annual returns etc for each of them, all that fun stuff. You can expect to spend anywhere from about 500 to 1,000 depending on where you are to open one up.

brazen birch
arctic marlin
#

"Please select a date to verify your Google Play account before February 29th - otherwise you will automatically receive one from us"

  • what is this and why is it something I need to select a specific day for it?

Do I have to get in a phone call with a google employe or why do I need to reserve a day for it?


 In November, we announced that all developers would need to verify their accounts to comply with the updated Play Console Usage Policy.  It was also announced that developers can choose a convenient date by which their account must be confirmed.

 We noticed that you have not yet selected a confirmation date for your developer account (LetMeDwight).  Choose a date in Play Console now so you have enough time to prepare.  Appointments will be made in the order in which reservations are received.```
tawny radish
#

I have a problem, after clicking on input field old android version not showing keyboard, build is il2spp target api 33
after treing to find solution for hours without result, i've decided to buy keyboard asset on asset store, but there was no popular ones, so that means problem i have is not a common problem, so if there is anyone here who had similar problem and fixed it please share your opinion

brazen birch
#

Probably, in part, related to US tax evasion and money laundering.

#

Right now anyone can make an account for $30 and sell almost anything

#

As an aside, Apple already does this in part, and it's why it takes so long to open an Apple Developer account. Sony, Nintendo and Steam all have a similar process.

fallen compass
#

$25 not $30

brazen birch
#

The fees in my head are always 130 for Apple and 30 for Google. Interestingly I think of steam as 100 not 130.

fallen compass
#

ah, I assumed you were talking USD because of the line above!

arctic marlin
brazen birch
#

I have no doubt this will result in the number of developer accounts reducing by about 75%

brazen birch
#

I should also say, I thought it was a bit odd as well. If I had my way, I'd just submit the documents now and be done with it.

arctic marlin
#

Wow, I took a look to reserve a date for my google play meeting. What is this meeting and what will they gonna do with me?
I only know that the reservation is now in the 12/2024 because there are so many other devs also doing the same kind of meeting with google play.

What is this and what will happen on the 12/2024 for me?
I only know I have to make a reservation otherwise google will force me a date that I am not able to choose.

neon thicket
#

Nobody knows, this has literally been just announced. Stop worrying so much.

sonic otter
#

Hopefully a lot of garbage apps get taken down too. So much anymore is not far off from blatant malware

mortal pelican
#

I keep getting gradle build errors I am unable to resolve

solemn stirrup
#

Anyone has any idea how to prevent apps on a android device to not crash after the phone has been on sleep for a long time?

slender hatch
#

can someone help me with my error please

#

i keep getting failed to find entry points and burst compiler 1.8.12 failed to run

dusty willow
#

Also, Apple sux. (getting my first ios build going too.)

brazen birch
supple swan
mortal pelican
#

Okay, I have worked my gradle build error into some missing dependencies in Firebase. Anyone have experience fixing this?

#

Could not find com.google.firebase:firebase-analytics-unity:10.6.0

solemn stirrup
solemn stirrup
brazen birch
#

Thats a terrible way to take a screenshot. But click on the bottom error and read the description that comes from it. In therr it'll say what the 4 errors are. Right now it just says it failed not why

unkempt heart
#

Hi!

I{m very new on this, I wanted to create an AR app to scan pictures and being able to watch a video, I was able to do it using Vuforia, the thing is that there is 1 specific mobile where the app does not work, so I tried to create another AR app but using ARFoundation this time, but I was not able to move forward because the AR Session Origin is not on the XR list. Does anybody know why is this? Also, I wanted to know if it is possible to build the same on iOS using a Windows

brazen birch
#

You have to build for ios with ios, or a build server of sorts unfortunately

indigo elbow
#

Or maybe I need audio clip?

#

But i don't know if is the FPS even is 60Fps

dusty willow
#

I have a weird problem when I build through xcode. I've installed one build but now whenever I try to make a new build it's always the first build. I've removed any trace of the previous build.

low maple
#

Am i the only one that has this problem with google play plugin first installation does not give you Auth Code on RequestServerSide ?

ripe bison
#

Hey, Im currently publishing my app, and I will need some international testers as well in the next days. For anyone interested shoot me a dm!

rain leaf
marble jacinth
#
AndroidPlayer "Lenovo_Lenovo TB 7306F@ADB:HA1NSPJ4:0" DirectoryNotFoundException: Could not find a part of the path '/Assets/Resources/Stories'.
```I don't know why I'm getting this. I do a bit of dynamic loading, but none of my paths include `/Assets/Resources` since that's included automatically right? everything else is loading, I can't even see what's NOT loading.

it's not a broken path where the part after `/Stories/` is missing
#

I do a debug before trying to load anything dynamically and this doesn't seem to be related to that for some reason

marble jacinth
#

nevermind, it was me. I found it.

#

I guess that doesn't work on android. does anyone have an example of how to do it?
I found this that seems to handle mobile/desktop, but they say it doesn't work: https://stackoverflow.com/questions/37553313/in-unity-getdirectories-does-not-work-on-android

#

I guess I should just hard-code the list of directories I expect, and all of the folder structure?

rain leaf
clear totem
#

Hi

#

i have a question

#

How can I make it so that I only need to glide to press?

#

I am making a 2D platformer for mobile and I am using unity's input system for it. I want it so that i can just slide my finger to to the other button instead of lifting it up at pressing it down again. For example I am pressing the right arrow key and i want to go to the left, I want to just slide my finger to the left button and not press it again.

last verge
analog plover
brazen birch
jolly bobcat
#

hello,
i just installed unity hub and then unity version 2021.3.1f1 from the archive, and not from the unity hub.
Now when i try to add the Android Build Support the option doesn't show in Unity hub. How can i add modules to this version of unity?

analog plover
#

You can't. Install it through the Hub.

jolly bobcat
#

i tried but the only versions available are these, i need the 2021.3.1f1

jolly bobcat
#

yes i downloaded it from there, but when i add it to unity hub and right click, i cannot add modules, as you can see.

neon thicket
#

When you downloaded it from the archive, did you choose the Unity Hub option?

spice bay
#

Guys, which IPointers to use for mobile. Does anyone have any idea, I am stuck and searched all the forums for this.

fallen compass
#

What do you want to do with them

spice bay
#

I want to track my movement over UI elements and then if hovered -> set hovered to true and item can be placed inside of that ui block.

iron copper
#

finally released my first mobile game

spice bay
#

Congratz

warm sun
#

When an Android user updates their app through the Play Store, do the PlayerPrefs persist? Assuming they don't uninstall. I'm getting mixed results on this on Google.

jolly bobcat
neon thicket
#

That didn't answer my question

rain leaf
rain leaf
brazen birch
#

You need to click on the red things in the console to read what the real errors are. It's in the body of the error message.

jolly bobcat
jolly bobcat
rain leaf
#

Yes, just download it and run the exe.
That's just the easy part though... you'll have to setup android sdk manually after that 😅

jolly bobcat
#

i see

#

should i do that from inside the unity editor?

rain leaf
#

you have to manually download and install all of them

#

android sdk, ndk, gradle, java, etc

jolly bobcat
#

oh god

#

okay

#

thanks

crimson acorn
#

https://youtu.be/ortBCyTLgeg?si=-q9KycEXFyAFqCI0
Link of game is in video's description.

Game Link:

Play Store : https://play.google.com/store/apps/details?id=com.yepisindiestudios.interval

What's New?
•New Post-Credit Scene Added for better understanding of the story.
•New Hospital Room Added.
•Bugs Fixes.
•Ambient Music Added.
•Randomization of Items every time the game restarts.

About The Game :

'Interval' is a Horror-Advent...

▶ Play video
fallen compass
crimson acorn
#

Huh?

#

Which channel am I supposed to use then?

fallen compass
#

Not some random help channel 😄

crimson acorn
#

Cuz the dude above posted a link too so I did so

fallen compass
#

He shouldn't have either

tepid kestrel
#

This error is occuring when I try to build my android project for unity

rain leaf
#

I'm starting to think that unity should start considering to show the proper/filtered error message instead of dumping the whole gradle error 🤔

marble jacinth
#

is there a way to automatically get the console in unity to show the device log on build and run? it keeps switching back to editor

marble jacinth
#

is this the right way to check files and directories on android?

public bool AndroidDirectoryExists(string directoryPath)
    {
        string projectRoot = Application.dataPath;
        string fullPath = Path.Combine(projectRoot, directoryPath);

        Debug.Log("Checking if directory exists: " + fullPath);

        return Directory.Exists(fullPath);
    }

    public string[] AndroidGetFilesInDirectory(string directoryPath)
    {
        string projectRoot = Application.dataPath;
        string fullPath = Path.Combine(projectRoot, directoryPath);

        Debug.Log("Getting files in directory: " + fullPath);

        if (Directory.Exists(fullPath))
        {
            string[] allFiles = Directory.GetFiles(fullPath);
            return Array.FindAll(allFiles, file => Path.GetExtension(file).Equals(".csv"));
        }
        else
        {
            Debug.Log("Directory does not exist: " + fullPath);
            return new string[0];
        }
    }```
kind zephyr
#

hello i wanna ask about optimize build game to .aab, i've already compress everything like mesh, fbx, texture with below to 3mb, but when i build it become over to 20mb for individual file, how can i fix this ?

fallen compass
fallen compass
kind zephyr
fallen compass
#

Why say the size is 20mb then 🤦‍♂️

#

After you do a build, click the 3 dots on the console and open the editor log. In there it will tell you the file size of each and every file/ asset/ etc that is in the build. Find the big ones and see what you can do to lower their size, or possibly remove if it shouldn't be there

mild warren
#

Can someone explain to me deferred purchasing ? I see that in the example IAP project OnDeferred purchase just throws a debug message, but there is another script for handling deferred purchases, that seems like it's own entity not having anything to do with the main IAP manager

spice bay
#

Guys, which IPointers to use for mobile. Does anyone have any idea, I am stuck and searched all the forums for this.

spice bay
#

Does OnPointerEnter and OnPointerExit even work in unity for mobile on simulator?

spice bay
#

OnPointerEnter enters and then Exit exits almost the same moment even tho i still have my mmouse down

fallen compass
#

you should probably be using Input touch events instead, mobiles don't have pointers

neon thicket
kind zephyr
fiery elbow
#

I have an issue with a game but its not related to ui.
Game camera zoom looks different on different devices how i can solve it does anyone know

foggy pier
#

anyone been hitting issues of extreamly high memory usage while making Android builds with Script Debugging enabled?

#

for larger projects it will eat literally all of my systems memory and the build will never complete and just stall

#

when it happens i end up with a bunch of clang++ processes with some of them using 20gb or more before i end up just force quitting everything with total usage from unity and all of htem being sometimes up to 60gbs

jolly hollow
rain leaf
lucid marten
#

Hello just a question, say I want to make a html build be compatible for mobile. What are the steps to do so? Or is it even possible for that?

low maple
#

So since google play plugin happens on awake now what if user has no internet should i create a script to check for internet on awake aswell and act acordingly ?

brazen birch
brazen birch
low maple
#

Thats the thing idk how exactly it works all i wanted was to delay the authentication to google play games and have it start on a loading screen instead of when app opens

brazen birch
#

I'd give it a test - turn off data and wifi and launch the app on the phone. But I'm sure they have a no-internet scenario for the plugin

#

It would be weird if it didn't

low maple
#

Its funny still signs in 😄 still see the google popup at top of the screen with no internet on or mobile data

#

Aparently its intended if the user is allready signed in which lets be honest everyone's phone is

#

They call it silent signin

brazen birch
#

Yeah that's pretty much what I was expecting

low maple
#

so how do i remove an ad network from level play integration ?

fallen compass
abstract lagoon
#

i get this error when trying to build any mobile application

brazen birch
#

It can't hurt to read all of them, but the last one looks the most relevant

lean knoll
#

hi, does anyone here know how to test app performance without actually have the said device? for example i want to test my game on low end device but i dont want to buy another phone just to test my game

sleek eagle
lyric sail
#

anyone know how selling from an app works these days, do u still need to use google/apples own methods and they take a cut? or can u use say a paypal sdk and avoid paying them their cut?

brazen birch
#

In practice it's locked down more than ever

#

Google however is starting to relax the policy post lawsuit

#

All of this is in reaction to Epic fighting to allow third party inapp purchases.

ripe bison
#

Hey, I need for my google Play store game a few more testers, its enough if you just install it. Anyone interested? Its basically a game where you play with up to 4 players on 1 device

regal dragon
barren dock
#

I am getting gradle error while buidling my project.
Here is the console details :-
Error 1:
FAILURE: Build failed with an exception.

Where:
Build file 'B:\unityProject\Test\Library\Bee\Android\Prj\IL2CPP\Gradle\build.gradle' line: 6

What went wrong:
Plugin [id: 'com.android.application', version: '7.3.1', apply: false] was not found in any of the following sources:

Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:7.3.1')
Searched in the following repositories:
Gradle Central Plugin Repository
Google
MavenRepo

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org/

BUILD FAILED in 3m 21s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Error 2:

rain leaf
barren dock
#

@rain leaf In the forum one has written "What worked for me was, I built with internet connection. I guess it got what it needed from the internet. Let me know if that works for you." But i dont know how to built with internet connection and what does it exactly mean, can you help me with that?

rain leaf
barren dock
#

I have internet connection working the whole time, but the issue still persist

onyx lagoon
#

Its for an android project already uploaded to play store

rain leaf
ripe pivot
#

Has anyone also experienced inconsistency in frame rate when testing on mobile. I’ll build my game, run it and get constant 30 fps with bloom on but then if I close the app and open it again or try to play it some other time I’m getting frame drops where I once never did. Or when I turn off post processing completely and still cannot keep a constant 30 fps but then again closing the app then opening it again it’s a totally different outcome in frame. Yes I have use object pooling and all the other steps into to make the game more efficient for mobile and check the debugging to see what is causing the frame drops but it’s always so inconsistent to when it might happen or even happen at all I’m not sure what to focus on fixing. I’ll rebuild my game in a new unity project do me any good, I’m kinda running out of ideas

sharp moon
#

Good morning, what are good free ways to save/load for IOS? knowing that I'm using Game Center for player authentication

ripe pivot
rain leaf
#

you can try profiling to find what is causing the slowdown, but if it is indeed cpu throttling, there's not much you can do, except optimizing your game further (if possible)

ripe pivot
barren dock
tiny wadi
#

Does anyone know how to achieve 90 or 120 fps on iphone?
Application.targetFrameRate = (int) Screen.currentResolution.refreshRateRatio.value;
or Application.targetFrameRate =90;
does not work.
Unity 2022 LTS, Unity 2023.2.8f1
FPS lock is disabled in iOS settings.

daring flare
#

Can someone help me please?
Im trying to run my game for android at a fixed 16x9 aspect ratio but I cant figure out how to do it

brazen birch
brazen birch
brazen birch
#

There are tons of examples online

last verge
brazen birch
last verge
#

i am real perosn

#

a bot wont make typing error

brazen birch
brazen birch
brazen birch
# daring flare Can someone help me please? Im trying to run my game for android at a fixed 16x9...

I was thinking more about this, as you can use the camera view port to adjust it if you want. Saw this script and thought it may help you

https://forum.unity.com/threads/force-camera-aspect-ratio-16-9-in-viewport.385541/

tiny wadi
brazen birch
# tiny wadi iphone 13 pro, iphone 15 pro... ? both phones support 120 hz

This may help, I don't use apple, but it might be good to check if the Unity xcode project is also frame limiting somewhere

https://forum.unity.com/threads/iphone-13-pro-120hz-something-is-wrong-with-display-synchronisation-inside-unity.1276082/

tiny wadi
#

yes, thank you. I've already tried all this 😦

low maple
#

so if i understand this right my game if i use google play games login it should have on google cloud 3 credentials 1x WebClient 1xDebug Android and 1x AppSignByGoogle Android to be able to sign in? Cuz right now when i build game from editor it works but when i install it from the internal testing page on google play it no longer signs in

#

Sorry not related to what you asked i was just asking for my own problem cuz idk its weird

onyx lagoon
#

I have a problem

So I've duplicated my project to test add another feature (Leaderboard) and what I did was follow coco codes video on sharing projects and mistakenly I deleted the keystore which led to this problem.

I also tried creating another keystore using cmd because unity wont let me and after I did I used it and it wont let me write the password even if I wrote it correctly.

I have these in my projects:
Firebase (Gmail login)
Google Pad (Play asset deliever)

I have tried several things:
Change my project location (Not in a one drive folder)
Remove the editor dll files of firebase
use a different keystore
change unity versions (3 times)
Changed the jdk sdk ndk and etc to custom downloaded versions

NOTE: The game is already uploaded to play store

Any help will be apperciated 😄
Here is the error code

low maple
#

@onyx lagoon if you are using google play app signing you can upload a new key and request a new public key

#

i had a similar problem only i did not lose the keystore i deleted the oauths from cloud while everything was setup what i did was refresh all keys and worked after.

forest spruce
#

install logcat package in unity and check logs

#

i don't remember it's name

#

oh, it's Android Logcat package

#

google it

tardy charm
forest spruce
#

if it crashes there should be an error that makes it crash

tardy charm
#

I didnt find anything tho, it just freezes right after the splashscreen

gloomy wing
#

for some reason when i build my game to iOS (issue is not on windows only iOS) my main camera refuses to render multiple layers, only one layer
the UI and TransparentFx layers just refuse to be renderered for some reason, or maybe its rendering the environment infront of them

#

these blue buttons are on a world space canvas (UI layer) and just do not appear whenever i build to iOS UNLESS i add a new camera that only renders the UI layer but then the UI is always infront of walls and stuff

#

also, this plane refuses to show up as well - its just using standard and its on the same layer as the environment but is NOT present in iOS builds

onyx lagoon
#

I was struggling for multiple days!!!!!!! 😭

dapper snow
#

Hello, I'm looking for someone to test a game I'm making. It's a 2d runner with a Trivia integration. It's apk. Let me know here or DM me

onyx lagoon
low maple
#

You need java installed or use the unity key creation

latent violet
#

This is the end for me guys

low maple
onyx lagoon
#

Tried it but shows the same error

#

I used a custom jdk tool

low maple
#

This might sound stupid but are you using onedrive as your project folder ?

onyx lagoon
#

Someone already said that to me

latent violet
onyx lagoon
low maple
#

might show in spanish for no reason but right click translate

onyx lagoon
low maple
#

You might have the wrong password as location is correct i assume

#

i have this bug on 2023 where once i place right password once it fails

#

then i have to remove it and place it again

#

and works]

#

only the password field

onyx lagoon
#

ok

onyx lagoon
#

Is there a way to access your keystore using cmd to verify the password?

low maple
#

yea

#

navigate to your jdk bin folder

#

and use this

#

keytool -keystore path-to-debug-or-production-keystore -list -v

#

keep in mind you must be in bin folder

onyx lagoon
#

Does it work in windows\system32?

low maple
#

for me its

C:\Program Files\Java\jdk-21\bin
#

no why lol

#

don't mess with system32

onyx lagoon
#

Ok

low maple
#

Just make sure you got JDK installed

#

i use jdk-21

onyx lagoon
#

Ok so my password is correct

onyx lagoon
#

On unity 2023.2.5f1

low maple
#

mhmh im running out of ideas

#

Have you tryed copy pasting error on gpt might give you some ideas

onyx lagoon
latent violet
onyx lagoon
onyx lagoon
#

Well this issue is difficult to solve

onyx lagoon
#

I am still trying to solve this issue but no success

brazen birch
#

I don't really like either

latent violet
brazen birch
#

Don't get me wrong, I don't like Google's policies or the mess that is their policy system and store front. But apple is not a safe haven in that regard.

#

It is usually less fuss though.

#

As long as you don't mind having to buy apple products to build, paying a yearly fee, dealing with xcode, their weird signing, and making a bunch of new policy agreements everytime you go to submit a build.

latent violet
#

But their Customer support is better than Google play store

sharp moon
low maple
#

So i have a question about addresables if i use them how exactly do they work for example scene 1 uses a bundle of addresables and then player moves to a new scene and comes back to scene 1 does he have to download the addresable for scene 1 every time he loads scene 1 or its like a 1 time download on device ?

brazen birch
#

It basically checks if it is cached, if not, downloads it.

low maple
#

Thanks il look into it

rancid spear
#

hi i wanted to created a simple 2d game the issue i have is how do i scale the game objects so i can play it on different devices like phone or tablet?

brazen birch
rancid spear
low maple
#

Use the simulator to view different options and looks also a 2d game you can also tap on the 2d indicator at top of your scene editor and view the gismo of the camera in real action

brazen birch
#

Its a bit harder if you want a fixed camera view over say a game table and not following a player

low maple
#

I think if you use camera space it won't matter nothing will show up 😄

brazen birch
#

In that last case, what I usually do is screen to world point on the 4 corners of the table, and that'll tell you how far off the camera is

#

But cinecamera or whatever it is would probably do it too

marble jacinth
#

I'm setting up asset bundles for my app so I can get it into google play's test track

  1. is there a way to assign everything that's inside a hierarchy to an asset bundle?
  2. a lot of my content is in /Resources/ because it's dynamically assembled at runtime. is that going to have an impact on asset bundles? I want all this stuff to be in the external bundle.
unreal flume
#

Hello, I wanted to build my game for Android, however, right as I press build button, it seems to give out this error, anyone knows how I can solve this?(I tried almost everything I can with online solutions)

CommandInvokationFailure: Failed to update Android SDK package list.
C:\Program Files\Unity\Hub\Editor\2021.3.35f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\2.1\bin\sdkmanager.bat --list

brazen birch
glossy sluice
#

I'm having an issue where calling Application.RequestUserAuthorizaton(UserAuthorization.WebCam) in a coroutine on iOS doesn't prompt the user to enable their device camera. I have a value set for the camera key in the project, but it doesn't seem to be prompting the user. Has anyone encountered this before?

cosmic yew
#

Hey, I am using the Safe Area Helper asset to make sure my UI is rendering only in visible parts of the display. We just tested our app on the iPhone 15 and the bottom UI is still messed up. Would you still recommend using that asset or solve the problem differently? Using Unity 2020.3.34f1.
(Link to asset https://assetstore.unity.com/packages/tools/gui/safe-area-helper-130488)

brazen birch
#

That one gets into mic, Webcam, etc.

brazen birch
glossy sluice
brazen birch
brazen birch
#

And then just document it in the projects Readme for the time being

silver solar
fallen compass
# silver solar

Why would doing anything with xode affect Unity building?

There’s more than one error log, click and read them all, then google to relevant bits to find the problem and solution.

past turret
#

can i ask question about improving performance on low end android devices here?

past turret
#

ok

#

i was asking whether i can use this channel for this problem or have to go to a diff one...

fallen compass
#

yes, Android is mobile.. ask in the mobile channel about mobile questions

low maple
#

anyone else has a problem with Resolving Android Dependencies after updating ironSource to 7.7 taking 20 years to resolve everything ?

#

like its been 1h allready for me its still making things

upper haven
#

Hey, I've started development on my first mobile game but the playtest with unity remote 5 isn't working. I've gone into project settings and selected any android device and enabled Android SDK in preferences. I'm currently using unity 2020.30f1. The problem is that the game isn't being mirrored to my device, making it so I can't playtest.

past turret
#

would there be any difference in performanc or visual quality if i choose all same options in Very Low and Very High in the quality setting?

neon thicket
#

No, that would make them the same

sacred creek
#

hey all, I want a button in my game UI that can be polled each frame, instead of using an event. Is there a simple way to do this?

#

default unity button seems to lack an "IsPressed" bool or anything like that

fallen compass
#

make your own bool, onbutton down set it true, onbuttonup set it false

idle anchor
#

how to generate pdf in unity? I'm using itext sharp , it generates 0 bytes on android but working on unity editor, pdf sharp working on unity editor but not on android

low maple
shy swift
#

I am trying to publish my game on playstore. But the app review got rejected due to links not complaint. After doing some research, I figured it is because of the Discord Server link I have put both in the game and the description, and the game is for all ages. Removing it should ideally fix the issue, but I cant understand if I should modify my studios website that I have put both in the description and the game. The website includes images of weapons, and the link to discord server.

Any suggestions on what I should do?

low maple
#

Is ironSource 7.7 requiring api 34 ?

urban moon
#

what polygons count should i aim for detailed anime hair in my android mobile game ? Most hair models have around 5.000, while one is around 50.000 (not optimized so far)

brazen birch
vital nacelle
#

EDIT: Solved! this was an issue with Game Center not being enabled for my apple app id. After enabling game center, regenerating my provisioning profile, and then manually enabling Game Center in xcode, I was able to sign is succesfully with my personal game center account.

Hello mobile devs,

I'm attempting to authenticate with Game Center as described here:
https://docs.unity.com/ugs/manual/authentication/manual/platform-signin-apple-game-center

upon calling var player = await GKLocalPlayer.Authenticate(); I get this error on my device:
GameKitException: Code=6 Domain=GKErrorDomain Description=The requested operation could not be completed because local player has not been authenticated.

So it is throwing a not-authenticated error while authenticating... hmm... I think what the Apple dev was attempting to communicate here is that the player has not enabled GameCenter on their device, but I absolutely have done that and am logged in with my personal GameCenter account. Is this some sort of sandbox account thing, or do I need to be logged into a tester apple id somehow?

Thanks in advance

brazen birch
rain leaf
#

even on mobile, you can create some kind of 'adaptive performance' by switching quality according to framerate

latent violet
#

Hello guys.. So my Google play console account got terminated for no specific reason, tried appealing countless times but no hope... So now am planning on focusing on IOS App store but am told to first get a Macbook so I wanna ask.... Which Macbook is better to use.. I don't have a big budget but I wanna know if there's any Macbook that can run Xcode since I'll be using my windows to continue creating the games

brazen birch
#

To complicate things - if you want to build for their new headset, you also need an m1 or higher

#

Then just pay your yearly dev fees. Get unity pro if you want to build for visionos. Gotta love the apple Ecosystem.

latent violet
#

Like the types and stuff.. Don't mind me... I don't have any clue about the Apple encyclopedia in relating to thier devices

brazen birch
#

I'm not much of an apple person so I'm not sure what's good and recent enough

#

At my personal station I use a recent Mac mini for builds - it takes up less space that way for me

latent violet
#

Oh just searched and saw it's like a cpu

fallen compass
#

CPU is a single processor inside a machine, a mac mini isn't "like a cpu". A mac mini is a small PC, a desktop mac

tardy charm
#

Hello Devs,

I have a problem developing a mobile game for android, which I can't fix for weeks...
When I build my project as .aab and install it on my phone (||Samsung Galaxy S21 Ultra||) and try to open the game,
right after the unity-logo splash screen the game freezes. It doesn't load into the first scene, which is the main menu.
However, if I open the game, and instantly minimize it (not completely closed from background, but instead went out from the app)
before the splash screen is finished showing, then reopen it from background apps.. it loads the first scene and works just fine.
You can see the action in detail in the following videos that I uploaded.

I don't know why or what the cause of this bug is, I even tried analysing the logcat, but still can't find the problem.
It would be very nice, if someone who is advanced at android game development could help me solve this issue.
I can send the game .aab file (and other necessary info if needed) via DM, if anyone is willing to take a look at it and help me.

Thanks in advance

tired lily
#

What else have you tried? Does a barebones project work? Did you try different Unity versions? did you try different scenes? Did you start ripping out pieces of your project to figure out which thing causes it to break?

tardy charm
#

i am using unity verison 2019.2.0f1 LTS and i've event tried an empty scene as the first one to load, but the game still froze after splash screen.. when i tried running the app on firebase robo test, it worked without any errors. but trying it on physical phone, it crashes. i've sent the game to some of my friends with different android versions, but still the same result. so the phone isn't the problem

tired lily
#

what about the other things?

tardy charm
#

i tried what i could. the thing is, it works fine on computer and it also works fine on mobile if i open the game in a specific way as shows in second video above

#

i think it has something to do with player/platform settings

tired lily
#

does a project with nothing but a scene in it work?

tardy charm
#

yes

tired lily
#

does a project with nothing but a scene in it and the same player and platform settings work?

tardy charm
#

hmm didn't try out yet

buoyant moat
#

Hello everyone! what should I answer to this?

tired lily
#

That's the correct one

buoyant moat
low maple
#

So to complile with api 34 i need to upgrade gradle to 8.6 ? (I use unity 22.3)

crisp fable
#

Data Collection and Secuirty (Google Play Console). I want to release my android game on google play store and I need to fill out the Data Safety form on google Play console. I do not have any ads, use any services or anything that I would be aware of, it's just an arcadey game I made. Is there anything collected (like crash logs for example) that every unity game just does by default that I need to disclose?

brazen birch
crisp fable
#

Oh wow, will do thanks.

crisp fable
tidal island
#

I have an issue
I cant open my APK file on API Version 34
and I need version 34 or it wont work

No errors in Unity, also tried several android devices on the correct version. The error when opening the APk I get is:
There was a problem while parsing the package

  • I have tried building again

  • Tried different unity versions

  • Started again from scratch, same thing

  • I have tried restarting PC

Any help appreciated!

iron acorn
tidal island
#

It's just that 1 error when I try opening the APK on any of my devices

iron acorn
#

Then the build didn't complete correctly. Were there no errors/warnings during the build?

tidal island
#

None at all.

#

I mean, all I got is:

Build completed with a result of 'Succeeded' in 10 seconds (9718 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
iron acorn
#

Also, use logcat or similar tool to see the device logs.

tidal island
#

No errors or warnings

fallen compass
#

use the logcat package to find out what's happening when you try to launch the app

tidal island
#

Alr thanks

#

will hjave

fallen compass
#

install it via the package manager

tidal island
#

I can launch it fine on bluestacks

#

I just cant open the APK file to click install on a device

#

Not sure if I still need logcat for that

fallen compass
#

you have to put the apk file on the device, then use the folder/files app to go to that apk and tap it to install it

tidal island
#

Yeah thats what I did 👍

fallen compass
#

then use the logcat.

tidal island
#

alr

#

is logcat an app or a tool in unity?

tidal island
#

Yes

#

basically a corrupted apk normally

#

but in this case

#

idk

#

I tried a clean apk install

fallen compass
#

because the list of things you said you tried, which wouldn't have any affect, aren't gonna do anything

tidal island
#

build I meant

fallen compass
tidal island
#

Okay

#

So api version 34

#

what android version would that need

iron acorn
#

Google

tidal island
#

ahh thats probably why

#

my phone doesnt support android 14

iron acorn
#

If you say you need that version, you must also know what android version that is.😅

tidal island
#

ill try it on my sisters phone

#

alr ty guys

#

cya

#

getting the s24 ultra in a few days so itll work

fallen compass
#

you know there's also a difference between the TARGET api version and the MINIMUM api version?

tidal island
#

I actually didn't haha

#

I just saw they were originally both the same version number, so I assumed they are always the same

fallen compass
#

Target needs to be what Google requires (33 currently), minimum can be lower

#

If they were always the same, there would be no point in having the two and being able to change them separately

maiden summit
#

soloution

brazen birch
maiden summit
#

i dont know how to turn off

#

please teach me sir

brazen birch
# maiden summit please teach me sir

I can't, there isn't enough information, sorry. But something in your project is requesting access to use the service. It's being added to the manifest. You need to figure out why and stop it, or change how you request the service and declare it on the website. I can't provide any details beyond what the website says unfortunately.

https://developer.android.com/develop/background-work/services/foreground-services

marble jacinth
#

one of my prefabs is saying that it's unrecognised and can't be included in the bundle:

Unrecognized assets cannot be included in AssetBundle: "Assets/Resources/StoryPrefab/StoryPageTemplate.prefab".
UnityEditor.BuildPipeline:BuildAssetBundles (string,UnityEditor.BuildAssetBundleOptions,UnityEditor.BuildTarget)
CreateAssetBundles:BuildAllAssetBundles (string) (at Assets/Editor/CreateAssetBundles.cs:24)
CreateAssetBundles:BuildAllAssetBundlesResources () (at Assets/Editor/CreateAssetBundles.cs:16)

what would be causing that? I have a lot of prefabs that are just working, including the sub-prefabs that are used in it

marble jacinth
#

I think this might be why. what is that?

iron acorn
marble jacinth
#

Might do, thank you

#

Oh wait no, it can't

#

I made all the scripts

#

It does use spine animation components though

#

Maybe the prefabs shouldn't be in an asset bundle

iron acorn
#

Asset bundles only allow referencing scripts and components that are included in the main build.

marble jacinth
#

Gotcha

#

I'll fix that up, thank you

ebon path
#

I've also asked this in #archived-shaders but since it seems it might also be a mobile problem, I'll ask it here

so I have a ShaderGraph that creates my water texture, it's ripples, etc. The thing is, idk why, but it doesn't export to mobile. I've built to my Samsung S23+ plus multiple times and I JUST realized the shader isn't showing up at all, although in the game view in Unity, the shader shows up and is correct.
Maybe it's because I'm using URP? I'm not sure. I have no experience with shaders and no clue where to start when it comes to troubleshooting

The last image is my water on my phone. It seems the shaders solid color is showing, with its alpha value. But the voronoi noise I'm using for the ripples isn't working/showing

marble jacinth
#

Is it computed voronoi or texture cached?

#

The simplest thing to do is to just use a texture that does what you want. Vastly faster, no curly mobile shader issues

hearty oriole
#

Hello, I need assistance. The graphics on my PC look good, but when I test them on my phone using Unity Remote, the graphics appear very pixelated. I have set the resolution to landscape 1920x1080, and my phone has an FHD+ resolution of 2280 x 1080. I want the game to look the same on every device. I only speak German and have limited English proficiency, so I might need some time to respond as I use Google Translate. Thank you for your help!

brazen birch
glacial quail
#

Hi, it's been another week and i'm still stuck on this... I would really really appreciate ANY help or tips please!

hearty oriole
#

Yes thanks it works

sleek eagle