Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: Alex Chouls on August 24, 2013, 11:27:44 AM
-
Unity does not remove unused scripts when making a build. This means unused actions will be in the build. We're working on our own tool to automatically remove unused actions, but in the meantime, here are some tips:
- If you don't use Unity Networking you can safely delete the PlayMaker/Actions/Networking folder.
- If you don't want your app to ask for GPS permissions, remove the location actions: GetLocationInfo, StartLocationServicesUpdate, StopLocationServicesUpdate.
- If you don't want your app to ask for vibration permissions, remove the Vibrate action.
-
Old thread, but I was googling for WAKE_LOCK issue and got to this page multiple time. I think I found a solution so I registered to these forums just to post this info :)
These two are related:
permission: Android.permission.WAKE_LOCK
try delete file: /PlayMaker/Actions/DevicePlayFullScreenMovie.Cs
(using Unity 5.0.4 and Playmaker 1.7.8)
edit: also sorry if it's against the rules to post to pinned threads or something. I'm such a newb ;D
-
Hi,
that's great, thanks for sharing this, it's indeed important.
Bye,
Jean
-
I made a note of the tips, however, I noticed that in 2013 you were working on a tool to remove unused scripts. Has this tool been developed? If that exists then I won't try to do this manually for my builds. Thanks.
-
Any progress on creating a tool to remove unused scripts?
-
Hi,
I am not aware of any progress on this right now. Currently, you'll need to do this manually unfortunatly.
Bye,
Jean
-
Got it, thanks.
-
Hi,
Any update for a tool?
-
Hi,
Not really unfortunatly...
Bye,
Jean
-
unity 4 playmaker1.7.7f6
add playmaker plugin
use Android
Could not find method android.net.ConnectivityManager.getRestrictBackgroundStatus and android.os.LocaleList.getDefault
BUG....
-
Hi,
Unity 4 is likely deprecated with Android. Have you tried with the latest Unity version and lasted PlayMaker version?
Bye,
Jean
-
Hi, any update on this tool?
A helpful alternative would be an option perhaps in Playmaker/Tools:
"Delete All Location Actions", "Delete All Networking Actions" etc.
Specifically for groups of actions that cause permission issues / requests on iOS and Android.