Search Unity

Uni2LwP : Create Live Wallpapers with Unity 3.4.2 /3.5.7/ 4.0/4.0.1

Discussion in 'Assets and Asset Store' started by shinx, Feb 28, 2013.

Thread Status:
Not open for further replies.
  1. sudhir_kotila

    sudhir_kotila

    Joined:
    Jul 1, 2014
    Posts:
    3
    Hi, This plugin is Great. I want to handle touches on that cube which is given in demo scene. can i handle the touchdown,touchup and touchmove phase of that perticular object. cos i want to move that object in my lwp.
     
  2. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    I have a small tutorial that helps you understand how you can achieve that. Please contact me using this form and I will send it to you.

    Best regards,
    Shinx
     
  3. pro-bchevalier

    pro-bchevalier

    Joined:
    May 30, 2013
    Posts:
    46
    Hi,

    I'd like to confirm that if I integrate interactive elements in Unity, it will not work on the wallpaper without additional work.
    Like if I add a button with a collider in my scene, it won't work as is. I'll have to code something using Eclipse to handle the touch input, right ?

    Thanks,
    ben
     
  4. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi Ben,

    Inside HomeSwitch.cs file you will find a function called SendTouchXY. This function already receives touch coordinates directly from Eclipse and converts then into a Vector3. Just add your code to that function after that.

    Best regards,
    Shinx
     
  5. pro-bchevalier

    pro-bchevalier

    Joined:
    May 30, 2013
    Posts:
    46
  6. Pram_Singh

    Pram_Singh

    Joined:
    Sep 23, 2014
    Posts:
    1
  7. Sandroid82

    Sandroid82

    Joined:
    Nov 15, 2013
    Posts:
    6
    Last edited: Sep 29, 2014
  8. mistigri

    mistigri

    Joined:
    Oct 1, 2014
    Posts:
    1
  9. Kanzler

    Kanzler

    Joined:
    Jun 14, 2014
    Posts:
    4
  10. Thjellesen

    Thjellesen

    Joined:
    Oct 7, 2014
    Posts:
    23
    If i want to use Uni2LwP.
    Will i need to buy a license for the android plugin, because it was not free in 4.01 ?
     
  11. Wenceslao

    Wenceslao

    Joined:
    Feb 7, 2009
    Posts:
    142
    So I installed the Android SDK, but when I build as per instructions in the first tutorial I get this error:

    Error building Player: Exception: android (invokation failed)
    ERROR: unknown error
    cmd:android list target -c
    stdout;
    stderr:
    Exception in thread "main" java.lang.NullPointerException
    at SDKMain.main(SDKMain.java:62)

    I've checked and rechecked my steps. I see that there was something posted in the blog about how 23.0 doesn't play nice. I've contact the author but I just thought I'd throw out as many lines as I can. I tried reverting to an older SDK but I still get the same error. Any ideas?

    Using Unity 4.0.1f2 on OS X
     
  12. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Please check your email. Tutorial sent :)

    Best regards,
    Shinx
     
  13. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    According to Unity :
    "if your organisation’s annual turnover is less than USD100,000, you can download and keep the free perpetual license version of our software, use it to develop your content and pitch a prototype to investors or publish a commercial product to Android, iOS and Windows devices without it ever costing you a dime."

    I believe that this also applies to Unity 4.0.1 but if you are still having doubts then only Unity can give a definite answer. In my opinion you only need to buy Uni2LwP license. That's it.

    Best regards,
    Shinx
     
  14. Wenceslao

    Wenceslao

    Joined:
    Feb 7, 2009
    Posts:
    142
    Thanks Shinx for the e-mail. I got passed the tutorial. I'm having a heck of a time with Eclipse and the emulators. I created a test scene with a 3d character doing an idle animation. When I attempt to run the wallpaper in an emulator I get Unfortunately, MyLiveWall has stopped. I may be confused about the capabilities of different versions of android but I have tried MANY combinations of version numbers and API levels. Can someone enlighten me as to what I'm doing wrong?

    Update: I just tried it on a tabet and it actually works fine.
    https://www.dropbox.com/s/46snh7nqc413tz0/Screenshot_2014-10-08-20-46-41.png?dl=0
    So it seems that emulators are the problem here.


    The following is the output from LogCat:

    Code (CSharp):
    1. 10-08 20:14:37.440: D/dalvikvm(690): Trying to load lib /data/data/com.evilinstinct.succubus/lib/libmono.so 0x410561a0
    2.  
    3. 10-08 20:14:37.440: D/dalvikvm(690): Added shared lib /data/data/com.evilinstinct.succubus/lib/libmono.so 0x410561a0
    4.  
    5. 10-08 20:14:37.464: D/dalvikvm(690): No JNI_OnLoad found in /data/data/com.evilinstinct.succubus/lib/libmono.so 0x410561a0, skipping init
    6.  
    7. 10-08 20:14:37.464: D/dalvikvm(690): Trying to load lib /data/data/com.evilinstinct.succubus/lib/libunity.so 0x410561a0
    8.  
    9. 10-08 20:14:37.500: D/dalvikvm(690): Added shared lib /data/data/com.evilinstinct.succubus/lib/libunity.so 0x410561a0
    10.  
    11. 10-08 20:14:37.540: D/libEGL(690): Emulator without GPU support detected. Fallback to software renderer.
    12.  
    13. 10-08 20:14:37.540: D/libEGL(690): loaded /system/lib/egl/libGLES_android.so
    14.  
    15. 10-08 20:14:37.560: D/AndroidRuntime(690): Shutting down VM
    16.  
    17. 10-08 20:14:37.560: W/dalvikvm(690): threadid=1: thread exiting with uncaught exception (group=0x409961f8)
    18.  
    19. 10-08 20:14:37.570: E/AndroidRuntime(690): FATAL EXCEPTION: main
    20.  
    21. 10-08 20:14:37.570: E/AndroidRuntime(690): java.lang.RuntimeException: Unable to create service com.evilinstinct.succubus.Succubus: java.lang.IllegalArgumentException: No configs match configSpec
    22.  
    23. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2262)
    24.  
    25. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.app.ActivityThread.access$1600(ActivityThread.java:122)
    26.  
    27. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
    28.  
    29. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.os.Handler.dispatchMessage(Handler.java:99)
    30.  
    31. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.os.Looper.loop(Looper.java:137)
    32.  
    33. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.app.ActivityThread.main(ActivityThread.java:4340)
    34.  
    35. 10-08 20:14:37.570: E/AndroidRuntime(690): at java.lang.reflect.Method.invokeNative(Native Method)
    36.  
    37. 10-08 20:14:37.570: E/AndroidRuntime(690): at java.lang.reflect.Method.invoke(Method.java:511)
    38.  
    39. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    40.  
    41. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    42.  
    43. 10-08 20:14:37.570: E/AndroidRuntime(690): at dalvik.system.NativeStart.main(Native Method)
    44.  
    45. 10-08 20:14:37.570: E/AndroidRuntime(690): Caused by: java.lang.IllegalArgumentException: No configs match configSpec
    46.  
    47. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.w.a(Unknown Source)
    48.  
    49. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.w.d(Unknown Source)
    50.  
    51. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.w.a(Unknown Source)
    52.  
    53. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.w.<init>(Unknown Source)
    54.  
    55. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.x.<init>(Unknown Source)
    56.  
    57. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.UnityPlayer$24.<init>(Unknown Source)
    58.  
    59. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.UnityPlayer.a(Unknown Source)
    60.  
    61. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.unity3d.player.UnityPlayer.init(Unknown Source)
    62.  
    63. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.mirage.livewallpaper.glLibrary.GLES20Unity.<init>(Unknown Source)
    64.  
    65. 10-08 20:14:37.570: E/AndroidRuntime(690): at com.evilinstinct.succubus.Succubus.onCreate(Succubus.java:48)
    66.  
    67. 10-08 20:14:37.570: E/AndroidRuntime(690): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2252)
    68.  
    69. 10-08 20:14:37.570: E/AndroidRuntime(690): ... 10 more
     
    Last edited: Oct 9, 2014
  15. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    To work with Android Emulator Unity needs the "Use Host Gpu" option enabled. Please check this post.

    Best regards,
    Shinx
     
  16. Wenceslao

    Wenceslao

    Joined:
    Feb 7, 2009
    Posts:
    142
    I had tried that but the emulator would just hang on my Macbook Air (I can't wait until I get my iMac back). I believe the other issue was that I needed to be using API 15+. 14 seems to cause problems on my hardware setup with using the "Use Host GPU" option. The emulator using API 14 would just hang on a black screen and the log would just fill with what looked like a rebooting loop. Thank you very much shinx, I appreciate the prompt responses.
     
  17. magamio

    magamio

    Joined:
    Nov 15, 2012
    Posts:
    7
  18. magamio

    magamio

    Joined:
    Nov 15, 2012
    Posts:
    7
    Any can help add SeekBar in Preference Screen? How it working?
     
  19. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    Please check your email.

    Best regards,
    Shinx
     
  20. Wenceslao

    Wenceslao

    Joined:
    Feb 7, 2009
    Posts:
    142
    Ok, I think I'm finished with this little experiment.

    https://play.google.com/store/apps/details?id=com.evillab.succubus

    Thanks Shinx! I may do another if I want do dwelve into other features of android like gyroscope. It took a bit longer than I liked but there were technical hurdles to cross that held me up. The emulators in Eclipse are AWFUL.
     
  21. Jokerzv

    Jokerzv

    Joined:
    Jan 30, 2014
    Posts:
    2
    Hi, Recently purchased your plugin for Unity 4.0.х, the same error. please help
     
  22. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Please contact me using this form and I will send you the tutorial.

    Best regards,
    Shinx
     
  23. Mauvais Singes

    Mauvais Singes

    Joined:
    Oct 24, 2014
    Posts:
    1
  24. iloveimy

    iloveimy

    Joined:
    Aug 11, 2014
    Posts:
    1
  25. MadOx

    MadOx

    Joined:
    Mar 8, 2014
    Posts:
    2
    Hello everyone!
    I want to introduce you to my new live wallpaper.
    Shinx, many thanks for Uni2lwp

    рекламный-банер.gif

    Live Wallpaper - cardboard nature

    Description: Leaving all questions for later, you'll get in a little world of tranquility. Fresh breeze, a bouquet of leaves and beautiful figurines clouds will take you into our world!

    Version: 2.0
    - Added support for the accelerometer.
    - Added ability to change the color of the wallpaper.
    - Added option to hide the clouds.
    - Fixed bugs.

    Link to the google play:
    https://play.google.com/store/apps/details?id=com.Madox.pasteboardnature
     
  26. nDman

    nDman

    Joined:
    Nov 1, 2013
    Posts:
    8
    Is this working with "Mobile Movie Texture" plugin?
     
  27. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    Mobile Movie Texture requires Unity 4.3.4 to work. It won't work with Uni2LwP because the we can only use Unity up to version 4.0.1.

    Best regards,
    Shinx
     
    nDman likes this.
  28. nDman

    nDman

    Joined:
    Nov 1, 2013
    Posts:
    8
    I know that, but older version of it "v1.17" works with Unity 4.0.1.
     
  29. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Can you email me the demo version (v1.17) to test?
     
  30. fercb17

    fercb17

    Joined:
    Dec 26, 2013
    Posts:
    13
    Hi Shinx,

    First I would like to thank you for creating this amazing plugin.

    I'm having the hardest time figuring out how to fix the known issue that happens when you set the wallpaper twice. I was wondering if you were getting any closer to fixing it or if you have any ideas of what could be causing it.

    Thank You
     
  31. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    Unfortunately no. Still the same :(

    Best regards,
    Shinx
     
    fercb17 likes this.
  32. fercb17

    fercb17

    Joined:
    Dec 26, 2013
    Posts:
    13
    thank you
     
  33. fercb17

    fercb17

    Joined:
    Dec 26, 2013
    Posts:
    13
    Hi Shinx,

    I came across a team that has been working with LWP for android for a long time maybe they can help with the issue. Here is their link
    https://github.com/MasDennis/Rajawali
     
  34. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Thank you for the suggestion, but that's not the case. That issue only occurs because we are using Unity as a rendering engine. If we create our own OpenGL code to render graphics (basically replacing Unity engine) then there would be no issues. Uni2LwP works perfectly. But naturally the live wallpapers would have to be created just like the ones build with Rajawali, Andengine, etc.

    Best regards,
    Shinx
     
  35. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    Hello, I just sent a mail for the updated tutorial.
    I also would like to ask is there any difference in building for Google Play of Amazon App Store?

    Thank you.
     
  36. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Please check you email. Tutorial sent.

    Best regards,
    Shinx
     
  37. rooty

    rooty

    Joined:
    Feb 11, 2013
    Posts:
    2
    if(Input.GetMouseButtonDown(0)){
    var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
    var hit : RaycastHit;
    }

    It works on a PC, but it does not work with mobile
    uni2lwp Is there relationship?


    if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Stationary){
    }
    Touch event does not react....
     
  38. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Please check you email. Tutorial sent :)

    Best regards,
    Shinx
     
  39. Kanzler

    Kanzler

    Joined:
    Jun 14, 2014
    Posts:
    4
    Last edited: Nov 26, 2014
  40. rooty

    rooty

    Joined:
    Feb 11, 2013
    Posts:
    2
  41. cigar

    cigar

    Joined:
    Oct 4, 2014
    Posts:
    1
    Hello! How can i change camera position?Different postitions of camera.
     

    Attached Files:

  42. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi

    Unfortunately I don't have any tutorial for that but I can help you get started. Please contact me using this form.

    Best regards,
    Shinx
     
  43. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello everyone,

    I have created 2 more tutorials (available via email):
    • How to send user text (EditTextPreference) from Android/java to Unity;
    • How to implement StartApp SDK ads on Settings menu;
    Check the tutorial page here.

    Best regards,
    Shinx
     
  44. Sylux102

    Sylux102

    Joined:
    Mar 17, 2013
    Posts:
    15
    I would buy this, but its based out of such an old and deprecated version of unity I can't use it. This should be updated to a newer version. You stated packages were missing. Could said packages be redistributed as part of this plugin?

    Also, @cigar, have you tried animations?
     
    Last edited: Dec 12, 2014
  45. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hello,

    Packages aren't missing ... Unity engine itself crashes when we instantiate the UnityPlayer class (issue resides with Unity libraries and classes.jar file). To fix this, Unity needs to change their code to be compatible with live wallpaper services.

    Best regards,
    Shinx
     
  46. Sylux102

    Sylux102

    Joined:
    Mar 17, 2013
    Posts:
    15
    I see. How unfortunate. I read somewhere that the live wallpaper feature only works for unity 3.4.0. Is this statement true? Or can I download an archive version of 4.0.1 and still get it to work properly?
     
  47. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Hi,

    Uni2LwP works with Unity 3.4.2/3.5.7 and 4.0/4.0.1. I recommend using Unity 4.0.1. :)

    Best regards,
    Shinx
     
  48. Sylux102

    Sylux102

    Joined:
    Mar 17, 2013
    Posts:
    15
    Oh perfect! Also, what is the file size of this package? Is it large? Im running low on HDD space on my PC and this might prompt some spring cleaning.
     
  49. shinx

    shinx

    Joined:
    Feb 28, 2013
    Posts:
    295
    Not large. Unity 4.0.1 is arround 700mb and Uni2LwP is very small (100kb).
     
  50. redred77

    redred77

    Joined:
    May 31, 2013
    Posts:
    23
    Does this library work with Android Lollipop?
    I saw many threads previous versions of Unity would not work on Lollipop.
    I'm already purchased customer of uni2lwp but couldn't test it on real device yet. (Don't have lollipop device near)
     
Thread Status:
Not open for further replies.