简体   繁体   English

如何使用unity3d创建android动态壁纸?

[英]How to create android live wallpaper using unity3d?

As written in the title, I'm trying to create an android live wallpaper using unity3d. 如标题中所述,我正在尝试使用unity3d创建一个android动态壁纸。 Unfortunately, I can't find any information on how to do that. 不幸的是,我找不到有关该操作的任何信息。

After doing a lot of research, trials and errors, I finally managed to make it work. 经过大量的研究,试验和错误,我终于设法使它起作用。 For those who are interested in running or trying to create Android live wallpapers on unity3d I created a GitHub sample project that you can use as a base for your own projects. 对于那些对在unity3d上运行或尝试创建Android动态壁纸感兴趣的人,我创建了一个GitHub 示例项目 ,您可以将其用作自己项目的基础。 I only tested this project on Unity 2018.3.5f1 , but any versions above 2018.3 should work, because since that version Unity allows you to add .java files into your Unity Project and they are compiled when you build an Android player. 我仅在Unity 2018.3.5f1上测试了此项目,但2018.3以上的任何版本应该可以使用,因为自该版本以来,Unity允许您将.java文件添加到Unity Project中,并且在构建Android播放器时会对其进行编译。 Because of that Android Studio is not required to compile this project. 因此,不需要Android Studio来编译此项目。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM