Search Unity

Activity indicator/spinner during load screen ... possible?

Discussion in 'iOS and tvOS' started by DaveyJJ, Sep 13, 2011.

  1. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    Is it possible to modify AppDelegate to show Apple's default activity indicator/spinner during the static background load/default scene? I'm concerned that with the project I've started working on I'm going to run into Apple's stopwatch issue (again) and it'll close before fully loading. Showing the activity indicator placates Apple in this regard to some degree. Thanks.
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    We did that for 3.5. On the other hand it required some tweaking of native code, so it may be not that easy for you. On the other hand you can wait ;-)
     
  3. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Alexey, can you make apple's spinner available for if I do resources.load as well? it would be very valuable to me (optionally of course).
     
  4. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    working on it. I can't promise anything as of now, but we want to give script access to it - so you can start it whenever you want
     
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Thanks Alexey, very kind :)
     
  6. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    Thanks Alexey, that's good to know. Is that tweaking of native code only in the AppDelegate.h or .m file in the loading functions (that might be attemptable by me after Unity has spit out the build) or something more involved?
     
  7. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    it is actual tweaking in unity source (not trampoline).
    On the other hand - you *can* do it yourself - it is just lot of code to add - you need to
    1. display your own splash screen
    2. start activity indicator
    3. skip at least one frame so ios have chance to actually start it (process even queue)
    4. only then call unity loading function
    I'm hesitant to provide source code itself as it is deviated from 3.4 considerably, but you should be able to do it yourself if you really want ;-)