简体   繁体   English

Cardboard SDK Unity-本地化和共享属性的方式?

[英]Cardboard SDK Unity - way to go native and share properties?

We are new to unity, and experimenting with a cardboard component. 我们是团结的新手,正在尝试使用纸板组件。 This is a separate project for now, but we would like to move this code over to our existing projects and have it called from non unity activities/controllers. 目前这是一个单独的项目,但是我们想将此代码移到我们现有的项目中,并从非统一活动/控制器中调用它。 But is there a way for the two technologies to share data? 但是,这两种技术是否可以共享数据? Based on some choices in the non-unity part of the app, it will change what URL the unity part needs to call. 根据应用程序非统一部分中的一些选择,它将更改统一部分需要调用的URL。 Can we use NSUserDefaults/SharedPreferences for Unity to get data from the other native side? 我们可以使用Unity的NSUserDefaults / SharedPreferences从另一本机端获取数据吗?

Unity can communicate with native code through the plugin architecture, documented here: Unity可以通过插件架构与本机代码通信,在此处记录:

http://docs.unity3d.com/Manual/Plugins.html http://docs.unity3d.com/Manual/Plugins.html

This is way too big a subject for me to provide more than this frowned-upon link-only answer. 对于我来说,这是一个太大的话题,无法提供比此仅皱眉的仅链接的答案更多的内容。

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

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