playMaker

Author Topic: Resource Load Async[SOLVED] [ECOSYSTEM]  (Read 6616 times)

Xenocalypse

  • Playmaker Newbie
  • *
  • Posts: 13
Resource Load Async[SOLVED] [ECOSYSTEM]
« on: November 21, 2016, 06:26:39 PM »
Hello again,

is it possible to load from resource folder load.async?

I tried to manipulate the custom script load resources. and used load.async
but as i´m not a coder of cause that dosen´t work.

And yes i know i need to have at least unity plus or pro wich i own. so can load async, but not from resources. anyway to achieve that ?

thx in advance

regards Xeno
« Last Edit: November 22, 2016, 01:53:28 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load Async
« Reply #1 on: November 22, 2016, 01:53:03 AM »
Hi,

Ok, I have done it, it's not trivial indeed to updated the action if you don't know c#:

https://twitter.com/JeanAtPlayMaker/status/800954886963666944

 let me know how it goes, I haven't tested on large assets.

Bye,

 Jean

Xenocalypse

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #2 on: November 22, 2016, 07:00:17 AM »
wow, thx so much, you are really great.

works great, testing huge assets later.

my intention was to load 10 levels, and if the player plays them load the other meanwhile, but if that load is finished they spawn imediatly.
is there a way to load them and call them if needed?

I mean you load it and store it, and than call the stored resource.

by the way does it keep the stored information (gameobject the whole levels in memory or does it unload it at any time, or if i despawn the object again.


anyway that is a create Action and i´m extremely thankful!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #3 on: November 24, 2016, 02:12:38 AM »
Hi,

Loaded Resources are only be explicitly unloaded. so yes info are kept in memory.

either using the custom action ResourcesUnloadUnusedAssets ( on the ecosystem) or with a call (https://docs.unity3d.com/ScriptReference/Resources.UnloadAsset.html) that I don't think there is an action for this. do you need this?


 Bye,

 Jean

Xenocalypse

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #4 on: November 24, 2016, 03:39:16 AM »
Hey Jean, Thank you very much for your help, i will try to use unload for now.
As Level makes Progress Load time gets a Problem because i guess it´s not unloaded, i will try this.

But do you have an answer for This. I use Your Custom Async Load Action.
But i can only use it at the End of The Loaded Level Pack.
Because if it´s loaded, it shows up.

Is there a way To load it, While Playing and show it  first, if i call it with an event maybe.

I mean: I load Level 1-10 at startup. If the Player starts to play, it loads Level 11-20 in the Background Async. If Level 10 is Finsished, call the Preloaded 11-20?
Is that Possible with you custom Action, ?

Regards Xeno


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #5 on: November 25, 2016, 01:18:51 AM »
Hi,

 yes, but it will likely create hickups during the load. but yes, indeed the asynch loading is indeed meant to be for that purpose.

have you tried it already?

From experience, I suggest you only load one level at a time and on demand as much as possible, prefer a small screen with a spinning icon and a nice "loading..." text then hickups, smaller loading time when th euser is aware of this will be much better than compromise on FPS.

Bye,

 Jean
Bye,

 Jean

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #6 on: November 26, 2017, 12:03:05 PM »
BUMP:

Sorry not sure If I should bump this or start a new thread.... Sorry.

I need an action that Loads All Resources Asynch. I think this might be my only option so I really need this. Thank you so much.
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #7 on: November 27, 2017, 01:47:52 AM »
Hi,

 there is an inherent logical issue with using this feature, if you need to have all resources loaded, then you don't need to have them in Resources and simply put them in a regular folder and they will all be available when app starts.

 maybe you could explain your use case?

I'll work on this anyway, but I just want to make sure you are not going in the wrong direction with your assets management.

 Bye,

 Jean

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #8 on: November 27, 2017, 12:18:01 PM »
I'm sorry I'm OK actually lol Im sorry! I freaked out, but than went to sleep and came up with another solution.

:)
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Resource Load Async[SOLVED] [ECOSYSTEM]
« Reply #9 on: November 29, 2017, 01:04:46 AM »
Hi,

 Good :) don't be sorry, it's always best to explain your issue to someone, it helps.

 Bye,

 Jean