Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Resolved UI and Some Actions Not Shown In APK

Discussion in 'Editor & General Support' started by apageeltd, Sep 5, 2020.

  1. apageeltd

    apageeltd

    Joined:
    Jan 9, 2019
    Posts:
    19
    I am facing an strange issue, that on Unity playmode
    Everything works fine, but when i successfully built APK to check on mobile

    The UI, and UI related actions are not showing up.
    Thus i am not being able to complete my project
    And i really dont know how to solve the issue.


    Extra Note: Also getting this messages on Console after successful built
    I am Using Default SDK by Unity

    .android/repositories.cfg could not be found
    unityengine.guiutilityprocessevent(int32, intptr, boolean&)



    Anyone please help me resolve the issue .

    Regards,

     

    Attached Files:

    Last edited: Sep 6, 2020
  2. Unity-Student0

    Unity-Student0

    Joined:
    Aug 10, 2020
    Posts:
    257
    The information you give is way too general. The following should be given before anyone can answer :
    - are you using your personal or company computer? (This also means whether you have permission.)
    - some kind of screenshot.
    - Are you using Windows, Mac or Linux?
    - Are you using Unity LTS or non-LTS?
    - Can you give your version?
    Do you know how to find all this information?
     
  3. apageeltd

    apageeltd

    Joined:
    Jan 9, 2019
    Posts:
    19
    Hi, Thanks for the reply,

    - I have attached screenshots and a video which will show that on editor things are working correctly but in apk , same doesnt happens.

    -Using Windows

    Unity Version 2020.1.4 (Also tried to find solution in 2020.1.1 and 2019 as well but same thing happens
     
  4. Unity-Student0

    Unity-Student0

    Joined:
    Aug 10, 2020
    Posts:
    257
    Since you're using Windows, use snipping tool for all if possible. Your screenshots are very small. I can't see your canvas at all - it's too blur. Be kind enough to try again. Perhaps other people have ideas too. Avoid using your phone to take pictures as snipping tool does a better job.
     
  5. apageeltd

    apageeltd

    Joined:
    Jan 9, 2019
    Posts:
    19
    Hi, thanks for the reply, i have found a solution a kind of work around of the proble, its a combination of my unity engine and code, but things are working nicely so far.
    thanks again
     
  6. Unity-Student0

    Unity-Student0

    Joined:
    Aug 10, 2020
    Posts:
    257
    Can you share so anyone else having this issue can benefit?

    Note: I was going to ask you to send the Unity QA team a bug report. I guess that's no longer required.
     
  7. apageeltd

    apageeltd

    Joined:
    Jan 9, 2019
    Posts:
    19
    I had already sent Unity Team a bug report, before things got solved.
    The Solution i found was, i am using Visual Scripting Playmaker, as my main source of programming .
    There , is an issue that , On UI system or anything that is reflected from Camera , if we have to use GET Property and SET Property , and then when the games complies as APK, or EXE or IOS file these properties, or actions gets ignored, because Unity Engine Sometimes doesn't recognize this codes and it doesnt compile the code in the APK . But in C# this doesnt happens.
    SO the workaround for Playmaker is Using a package called Linker Wizard.

    So The main issue was related to programming , and not related to Unity Engine or Canvas Size etc.

    So anyone having these kind of issue , the main thing to be concerned about is Code.
     
  8. Unity-Student0

    Unity-Student0

    Joined:
    Aug 10, 2020
    Posts:
    257
    OK but was your original decision to create the apk, or was it exe or IOS file?
     
  9. apageeltd

    apageeltd

    Joined:
    Jan 9, 2019
    Posts:
    19
    To create APK