playMaker

Author Topic: Resources.LoadAsync with Do Not Spawn option  (Read 686 times)

Christoph

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
Resources.LoadAsync with Do Not Spawn option
« on: April 30, 2021, 02:19:47 AM »
I updated the action Resources.LoadAsynch from the Ecobrowser and called it *Async without the "h" as in the official Unity documentation: https://docs.unity3d.com/ScriptReference/Resources.LoadAsync.html

The important change nonetheless, is the addition of a boolean for "Do Not Spawn", exactly as we have it in the normal Resources.Load action.

This is needed when you use a pooling system and want instead to add your resources to your pool or simply don't want to instantiate your resources when you load them.

Feel free to download from here or to add to the Ecobrowser.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15496
  • Official Playmaker Support
Re: Resources.LoadAsync with Do Not Spawn option
« Reply #1 on: May 12, 2021, 02:03:08 AM »
Hi,

 cool, it's on the ecosystem now, I updated the action.

Bye,

 Jean