# Custom loading bar

**URL:** https://discussions.unity.com/t/custom-loading-bar/407272
**Category:** Mobile
**Tags:** iOS
**Created:** [February 14, 2010, 6:05pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272 "2010-02-14T18:05:01Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cbodapati](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@cbodapati](https://discussions.unity.com/u/cbodapati)
#### Post date: [February 14, 2010, 6:05pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/1 "2010-02-14T18:05:01Z")

</div>

Hi,

I would like to know if I can show a custom loading bar while the level is loading.

Im using unity IPhone Pro.

thanks,  
Srikanth.

---

<div class="post-metadata">

### Author: ![User340](https://avatars.discourse-cdn.com/v4/letter/u/bbe5ce/32.png) [@User340](https://discussions.unity.com/u/User340)
#### Post date: [February 14, 2010, 6:24pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/2 "2010-02-14T18:24:30Z")

</div>

No

---

<div class="post-metadata">

### Author: ![anon\_91128353](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@anon\_91128353](https://discussions.unity.com/u/anon_91128353)
#### Post date: [February 15, 2010, 5:59am UTC](https://discussions.unity.com/t/custom-loading-bar/407272/3 "2010-02-15T05:59:42Z")

</div>

bummer eh?

i ended up just adding a simple scene with the words “Loading” and “Wait you impatient bastard” on it that is loaded before the gameplay scene so at least it doesn’t look like the game crashed. That’s my simple minded solution.

---

<div class="post-metadata">

### Author: ![cbodapati](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@cbodapati](https://discussions.unity.com/u/cbodapati)
#### Post date: [February 15, 2010, 6:07pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/4 "2010-02-15T18:07:24Z")

</div>

hmmmmmmm I hope it gets better soon.

---

<div class="post-metadata">

### Author: ![mudloop](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mudloop](https://discussions.unity.com/u/mudloop)
#### Post date: [February 15, 2010, 8:22pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/5 "2010-02-15T20:22:26Z")

</div>

I read somewhere that Unity Wii supports this, and that they plan to port it over to Unity iPhone - but I’m not entirely sure.

---

<div class="post-metadata">

### Author: ![anon\_49457054](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@anon\_49457054](https://discussions.unity.com/u/anon_49457054)
#### Post date: [March 8, 2010, 1:06pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/6 "2010-03-08T13:06:49Z")

</div>

I suppose it’s possible through scripting, by using different threads. If one thread changes a value, and the other one changes the width of the mask of a bar by that value, i think it might be possible.

---

<div class="post-metadata">

### Author: ![mudloop](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mudloop](https://discussions.unity.com/u/mudloop)
#### Post date: [March 8, 2010, 2:14pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/7 "2010-03-08T14:14:54Z")

</div>

Nope, because loading is done in the time of one frame.

What you could do is split up the scene you want to load in multiple scenes, and load them additively, and each time one gets loaded, it updates the bar, and it loads the next part. It would involve a lot of work though, and the loading bar still wouldn’t be very smooth. And I suppose loading times will increase as well.

---

<div class="post-metadata">

### Author: ![anon\_49457054](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@anon\_49457054](https://discussions.unity.com/u/anon_49457054)
#### Post date: [March 8, 2010, 2:58pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/8 "2010-03-08T14:58:12Z")

</div>

i thought it was possible to get the byte array of an object/file/whatever. So it also must be possible to loop through the bytes while loading, and adjust your loading bar by the bytearray.length/bytearray-position

---

<div class="post-metadata">

### Author: ![mudloop](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mudloop](https://discussions.unity.com/u/mudloop)
#### Post date: [March 8, 2010, 3:05pm UTC](https://discussions.unity.com/t/custom-loading-bar/407272/9 "2010-03-08T15:05:01Z")

</div>

Okay, that might work, presuming you can create all your objects from files. It will work for textures, etc, but some other stuff might be trickier (prefabs, for instance). I’m not sure.

---

<div class="post-metadata">

### Author: ![minevr1](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/minevr1/32/213539_2.png) [@minevr1](https://discussions.unity.com/u/minevr1)
#### Post date: [March 9, 2010, 4:14am UTC](https://discussions.unity.com/t/custom-loading-bar/407272/10 "2010-03-09T04:14:30Z")

</div>

A scene to Null scene to B scene… 😄

but…is dead~~
