playMaker

Author Topic: Add Resources.UnloadUnusedAssets!  (Read 5220 times)

dubnug

  • Playmaker Newbie
  • *
  • Posts: 22
Add Resources.UnloadUnusedAssets!
« on: May 29, 2014, 12:32:13 AM »
Hey Playmaker team!

I've enjoyed using Playmaker for over a year and have downloaded some great custom actions I've found. I recently found the Resources.Load action which could really help with my pre-existing workflow in Playmaker, but on iOS it's of limited aid without a Resources.UnloadUnusedAssets action (for memory purposes) once the object is destroyed.

Anyone agree or have a custom action for this?

Thank you!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Add Resources.UnloadUnusedAssets!
« Reply #1 on: May 29, 2014, 12:49:43 AM »
Hi,

It's already available on this forum:

http://hutonggames.com/playmakerforum/index.php?topic=4419.msg23533#msg23533

Or you can use the new ecosystem online browser. I made these actions available on there too:

https://hutonggames.fogbugz.com/default.asp?W1181

install this package, open the ecosystem browser, seach for "unload" and get that action, it will automatically download and install it in your project.

 Bye,

 Jean


 

dubnug

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Add Resources.UnloadUnusedAssets!
« Reply #2 on: May 29, 2014, 03:29:49 AM »
Hi Jean,

Thanks for the reply. On the first link - it looks like that's for AssetBundle unloads, not Resource unload unused's. I'll download it anyhow to see if it's a hidden included action.
edit: Looks like this is just for AssetBundles, not individual Resources.

As for the ecosystem browser, I encountered numerous errors on importing the package. Will also try to work through this but I'm limited to Unity 4.1.4 due to an essential plug-in (which is taking their team quite a while to update; other priorities), so that may be the issue.

Does the first link you provided have the Resources.UnloadUnusedAssets specifically - not just the AssetBundle unload?

Thank you!
« Last Edit: May 29, 2014, 04:26:51 AM by dubnug »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15501
  • Official Playmaker Support
Re: Add Resources.UnloadUnusedAssets!
« Reply #3 on: May 29, 2014, 05:05:46 AM »
Hi,

d'oh, that was me not reading properly.

 Please find the action attached to this post. It's on the ecosystem now as well, but yes the ecosystem only works with the latest version of Unity. I'll need to see how I can provide a system that works on all Unity versions.


 Bye,

 Jean

dubnug

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Add Resources.UnloadUnusedAssets!
« Reply #4 on: May 29, 2014, 06:40:58 AM »
Ah no problem at all! Even though it's my fault I can't update Unity at the moment, I really appreciate that you provided me the action nonetheless. Hoping to be able to upgrade so I can use Ecosystem soon - looks awesome.

Thanks again Jean, as always  ;D

Vlad1987

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Add Resources.UnloadUnusedAssets!
« Reply #5 on: May 04, 2022, 04:25:36 AM »
hey everyone  :) is this action still supported in 2022 doesn't seam to show up on the actions list :( can anyone let me know merci !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7025
    • jinxtergames
Re: Add Resources.UnloadUnusedAssets!
« Reply #6 on: May 04, 2022, 09:01:05 AM »
Hi.
Its a custom action, not included by the default actions.

You can check the Ecosystem or get the file from here.

Vlad1987

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Add Resources.UnloadUnusedAssets!
« Reply #7 on: May 04, 2022, 12:00:21 PM »
cool ! Merci