Unity live wallpaper android

Unity live wallpaper android

Unity Android Live Wallpaper

Run your Unity game as live wallpaper on Android. Used in production by the app Fluid Simulation.

The main reason I open source it is because this implementation has several major bugs that I can’t fix and I need help with:

  • When you launch lwp preview, press home button and then go back to preview. Whoops. it crashes.
  • On many launchers instead of fullscreen, it runs only in small portion of the screen.
  • Also not rendering in fullscreen when in landscape mode.

So my goal is to fix these problems and to make this library the best Unity’s lwp Android implementation ever, that is also the simplest and free.

Export your game as Android Studio project. Then you need to make next steps:

  1. Copy content from AndroidManifest.xml to the project’s AndroidManifest.xml, after main activity tag. Should look like this:

Add WallpaperActivity.java script into the project. You probably would need to change the package name at the top of the script.

Make xml folder in res and add wallpaper.xml file there.

Now you can build and run. Go into wallpaper settings of your phone to see it. If you are using Samsung device then you need to install Google Wallpapers app to set it as a wallpaper.

About

Run your Unity game as live wallpaper on Android

Источник

Unity live wallpaper android

UniLWP.Droid (Free Version) UPM Package

How does UniLWP.Droid work?

This section has a more detailed version on UniLWP.Droid Documentation, check it out if you want to know more.
The UnityPlayer java class has a constructor that accepts a Context instance to init the player itself. It also has a method for switching surfaces:

As UnityPlayer does not enforce the activity check (it actually did for runOnUiThread reasons, but that is another story), we can pass an application context to the parameter and init a UnityPlayer.
This should be executed as soon as possible, so UniLWP.Droid introduced a ContentProvider subclass solely for early-init purposes.

For why ContentProvider is even inited earlier than the onCreate call in the Application class, please read a post on firebase blog.

Our ContentProvider subclass provides a universal application context that calls Unity at the beginning of the application lifecycle, so any Activity or Service inited after that are free of null reference exceptions.

Источник

Run your Unity game as live wallpaper on Android

Category: Android / MiscellaneousWatchers: 16Star: 161Fork: 37Last update: Nov 27, 2021

Unity Android Live Wallpaper

Run your Unity game as live wallpaper on Android. Used in production by the app Fluid Simulation.

The main reason I open source it is because this implementation has several major bugs that I can’t fix and I need help with:

  • When you launch lwp preview, press home button and then go back to preview. Whoops. it crashes.
  • On many launchers instead of fullscreen, it runs only in small portion of the screen.
  • Also not rendering in fullscreen when in landscape mode.

So my goal is to fix these problems and to make this library the best Unity’s lwp Android implementation ever, that is also the simplest and free.

Читайте также:  Android не работает шторка

Export your game as Android Studio project. Then you need to make next steps:

  1. Copy content from AndroidManifest.xml to the project’s AndroidManifest.xml, after main activity tag. Should look like this:

Add WallpaperActivity.java script into the project. You probably would need to change the package name at the top of the script.

Make xml folder in res and add wallpaper.xml file there.

Now you can build and run. Go into wallpaper settings of your phone to see it. If you are using Samsung device then you need to install Google Wallpapers app to set it as a wallpaper.

Источник

durranilab / Unity-Android-Live-Wallpaper Go PK Goto Github PK

Run your Unity game as live wallpaper on Android

License: MIT License

Unity-Android-Live-Wallpaper’s Introduction

Unity Android Live Wallpaper

Run your Unity game as live wallpaper on Android. Used in production by the app Fluid Simulation.

The main reason I open source it is because this implementation has several major bugs that I can’t fix and I need help with:

  • When you launch lwp preview, press home button and then go back to preview. Whoops. it crashes.
  • On many launchers instead of fullscreen, it runs only in small portion of the screen.
  • Also not rendering in fullscreen when in landscape mode.

So my goal is to fix these problems and to make this library the best Unity’s lwp Android implementation ever, that is also the simplest and free.

Export your game as Android Studio project. Then you need to make next steps:

  1. Copy content from AndroidManifest.xml to the project’s AndroidManifest.xml, after main activity tag. Should look like this:

Add WallpaperActivity.java script into the project. You probably would need to change the package name at the top of the script.

Make xml folder in res and add wallpaper.xml file there.

Now you can build and run. Go into wallpaper settings of your phone to see it. If you are using Samsung device then you need to install Google Wallpapers app to set it as a wallpaper.

Contributors

Recommend Projects

React

A declarative, efficient, and flexible JavaScript library for building user interfaces.

Vue.js

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Typescript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

TensorFlow

An Open Source Machine Learning Framework for Everyone

Читайте также:  Медикал хелпер для андроид

Django

The Web framework for perfectionists with deadlines.

Laravel

A PHP framework for web artisans

Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

javascript

JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

Some thing interesting about web. New door for the world.

server

A server is a program made to process requests and deliver data to clients.

Machine learning

Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

Visualization

Some thing interesting about visualization, use data art

Some thing interesting about game, make everyone happy.

Recently View Projects

Unity-Android-Live-Wallpaper

Run your Unity game as live wallpaper on Android

pytest-trio

Pytest plugin for trio

Stephix

web api. proyecto en spring web con la utilización de spring data mongodb (no sql). te permite hacer solicitudes de series,películas, o temporadas.

Cinder-Text

test repo for cinder text handling rewrite.

fucking-algorithm

刷算法全靠套路,认准 labuladong 就够了!english version supported! crack leetcode, not only how, but also why.

Источник

Unity Android Live Wallpaper

Run your Unity game as live wallpaper on Android. Used in production by the app Fluid Simulation.

The main reason I open source it is because this implementation has several major bugs that I can’t fix and I need help with:

  • When you launch lwp preview, press home button and then go back to preview. Whoops. it crashes.
  • On many launchers instead of fullscreen, it runs only in small portion of the screen.
  • Also not rendering in fullscreen when in landscape mode.

So my goal is to fix these problems and to make this library the best Unity’s lwp Android implementation ever, that is also the simplest and free.

Usage

Export your game as Android Studio project. Then you need to make next steps:

Copy content from AndroidManifest.xml to the project’s AndroidManifest.xml, after main activity tag. Should look like this:

Add WallpaperActivity.java script into the project. You probably would need to change the package name at the top of the script.

Make xml folder in res and add wallpaper.xml file there.

Now you can build and run. Go into wallpaper settings of your phone to see it. If you are using Samsung device then you need to install Google Wallpapers app to set it as a wallpaper.

Источник

Оцените статью