使用unity3d创建动态壁纸? [英] create live wallpaper using unity3d?

查看:248
本文介绍了使用unity3d创建动态壁纸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我使用 unity3d 为Android创建动态壁纸时必须使用哪些资产吗?我正在使用最新版本的unity,版本为 5.3.4 .

Can anyone tell me which asset I have to use to create a live wallpaper for android using unity3d? I'm using latest version of unity which is 5.3.4 .

推荐答案

转到统一商店,搜索uLiveWallpaper(Indie).它的价格为25美元.将其导入统一应用程序.

Go to unity store, search for uLiveWallpaper(Indie). It costs 25$. Import it to the unity app.

通过调用打开uLiveWallpaper窗口

Open uLiveWallpaper window by calling

工具→多边形丢失→uLiveWallpaper

Tools → Lost Polygon → uLiveWallpaper

该窗口包含三个选项卡:创建项目",更新项目"和关于&支持".

The window consists of three tabs: "Create Project", "Update Project", and "About & Support".

要开始创建动态壁纸,首先,您必须为Android Studio创建一个动态壁纸项目.创建初始项目后,为了反映您在Unity项目中所做的更改,您需要更新该项目.

To start creating your live wallpaper, first, you must create a Live Wallpaper project for Android Studio. After the initial project is created, in order to reflect the changes made in your Unity project, you’ll need to update the project.

它与所有unity v5或更高版本兼容.

It is compatible with all unity v5 or above.

别忘了提供正确的程序包名称,否则在构建应用程序时会显示错误消息.

Don't forget to give proper package name else will show an error message while building the app.

注意:要构建和运行动态壁纸项目,必须使用Android Studio. 建造" 和构建设置"窗口中的构建并运行"按钮将构建与动态壁纸不兼容的常规Unity项目.

Note: to build and run your live wallpaper project, you must use Android Studio. "Build" and "Build And Run" buttons in "Build Settings" window will build a regular Unity project that is not compatible with live wallpapers.

启动Unity.打开uLiveWallpaper窗口,然后选择创建项目"选项卡.选择 目标目录,选择项目生成选项,然后单击创建项目" 按钮. 这将生成一个中间的Eclipse项目.现在,需要将其转换为Android Studio项目.

Start Unity. Open uLiveWallpaper window and select "Create Project" tab. Select the destination directory, select project generation options and click the "Create Project" button. This will generate an intermediate Eclipse project. Now, it needs to be converted intoAndroid Studio project.

启动Android Studio. 如果出现欢迎使用Android Studio"初始屏幕: 点击导入项目(Eclipse ADT,Gradle等)",然后选择您刚刚创建的项目 创建.单击确定. 从ADT导入项目"窗口应打开.选择 导入项目的目标目录.单击下一步,保持导入设置不变,单击 结束.等待导入成功.您现在可以删除中间的Eclipse项目,不再需要.

Start Android Studio. In case a "Welcome to Android Studio" splash screen appears: Click "Import project (Eclipse ADT, Gradle, etc.)" and select the project you’ve just created. Click OK. "Import Project from ADT" window should open. Select the destination directory for imported project. Click Next, leave import settings as-is, click Finish. Wait for import to succeed. You can delete the intermediate Eclipse project now, it is no longer required.

点击文件...→新建→导入项目...",然后选择您刚刚创建的项目.点击 好的. 从ADT导入项目"窗口应打开.选择目标目录 导入的项目.单击下一步",保持导入设置不变,单击完成".等待导入成功.

Click "File... → New → Import Project..." and select the project you’ve just created. Click OK. "Import Project from ADT" window should open. Select the destination directory for imported project. Click Next, leave import settings as-is, click Finish. Wait for import to succeed.

单击文件...→新建→新模块...→导入.JAR/.AAR包"并导入 "LP_uLiveWallpaper.aar"库,位于资产/uLiveWallpaper/库/"中 目录在您的Unity项目中.

Click "File... → New → New Module... → Import .JAR/.AAR Package" and import "LP_uLiveWallpaper.aar" library, located in "Assets/uLiveWallpaper/Libraries/" directory inside your Unity project.

单击文件→项目结构..."以打开项目结构"窗口. 在模块"列表(左侧)中,选择应用"模块.切换到依赖项" 标签.单击右侧的绿色"+"按钮并添加模块依赖性 "LP_uLiveWallpaper.aar". 最后,单击确定"关闭项目结构"窗口

Click "File → Project Structure..." to open the "Project Structure" window. In the "Modules" list (on the left), select the "app" module. Switch to "Dependencies" tab. Click the green "+" button at the right side and add module dependency "LP_uLiveWallpaper.aar". Finally, click OK to close the "Project Structure" window

通过执行构建→重建项目"来测试您的墙纸项目是否构建良好.如果没有错误 将会发生,您已经准备就绪!否则,请重新检查以前的步骤.

Test if your wallpaper project builds fine by doing "Build → Rebuild Project". If no errors will occur, you’re all set! Otherwise, recheck previous steps.

这篇关于使用unity3d创建动态壁纸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆