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

The program went crazy

Discussion in 'Editor & General Support' started by Kandrbol, May 7, 2020.

  1. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    Everything worked. I had the game ready. I started trying build for android. And all of a sudden I'm trying to play a game in Unity, and program it doesn't work as it should. What happened? As if they stopped working scripts.
     
  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    Since we don't know anything about how your game should work, we are going to need more information then that.

    Standard things to try:

    * Switch back to PC
    * Restart Unity/PC
    * Revert changes in source control
    * Reimport everything
     
  3. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    I try all and still is it broken !! It does not report any error. But as if some methods in scripts didn't work at all. I'm very upset.
     
  4. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    I may have to rebuild the whole game again from start. (Copy scripts and insert things to inspector.)
     
  5. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    Did you really try reverting to an earlier version? I couldn't imagine a situation where this wouldn't work, unless you weren't using source control properly.

    Have you tried debugging the scripts to work out the root cause? e.g. are the references on prefabs still assigned properly etc.
     
  6. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    You should state whether and what the specific problems are. Are there errors in the console?
     
  7. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    I discovered 3 influences that harm the feeling crazy.
    1. Poor functionality built-in MP4. Unfortunately, I created it and only then found out that Unity has with MP4 problems. (Now I'm remaking MP4 to anim image, becouse this are only short sequence, about 3 seconds).
    2. An error in the program that did appear until startup outside the computer - solved.
    3. Different resolution mobil phone (wrong setting canvas) - solved.

    Still, there's one more thing I don't know. In normal mode, UI buttons appear without problems. But in android at the touch of a one button disappear other button. But and that's wrong. Poor work with MP4 can also cause this error?

    Unity diskuze.png
     
  8. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    Or there may be a problem with an elder Android? I have mobil phone with 6 (marhmelow). But in computer I have SDK from 6 to 10 android. But I'm not familiar with this.
     
  9. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    Excuse me for my bad english. But I believe that you understand me.
     
  10. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    Yes. It will be problem with MP4. I have set it in the program, that buttons are visible (true), after certain frame video. But if MP4 bad function, it will not reach this frame. I think it will also be solved by converting MP4 to anim.
     
  11. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    I doubt there's much anyone can suggest about the button problem without seeing the code you're calling upon clicking a button. My guess, though, would be that it's an issue with your screen size. Have you tested this in Unity using the same screen dimensions that you're using on Android? My guess would be that you're moving the buttons relative to some anchor/point, and they're going off-screen in android.
     
  12. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Is this a new problem, or a problem you're only noticing now because you had never tested your game on the target platform through its entire development?
     
  13. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    Yes. This is all new for me. This is my first project which I finish up to build to WebGL and Android.
     
  14. Kandrbol

    Kandrbol

    Joined:
    Aug 15, 2018
    Posts:
    117
    In this time I think that my problems will be solved. I'll see after change MP4 to anim sprites.