首页 > 代码库 > 2015-01-28
2015-01-28
1.unity的平台依赖功能
http://edu.china.unity3d.com/learning_document/getData?file=/Manual/PlatformDependentCompilation.html
http://docs.unity3d.com/Manual/PlatformDependentCompilation.html
http://game.ceeger.com/Manual/PlatformDependentCompilation.html
2.上面这些都讲了怎么依赖各个平台进行设置,也讲了自定义依赖怎么创建,但是就是没讲自定义的东西怎么应用
关于应用,终于被我在这里找到了
http://www.xuanyusong.com/archives/2418/
http://www.createdbyx.com/createdbyx/post/2013/02/01/Unity-101-Tip-50-%E2%80%93-Ensure-conditional-compilation-symbols-are-present.aspx
关键的api是这个PlayerSettings.SetScriptingDefineSymbolsForGroup:这个api的解释为Set user-specified symbols for script compilation for the given build target group.
对于给定的TargetGroup,设置用户自定义的符号编译(这个符号编译就是你自己自定义的符号)
文档在这里http://docs.unity3d.com/412/Documentation/ScriptReference/PlayerSettings.SetScriptingDefineSymbolsForGroup.html
3.unity接入小米sdk
http://www.miui.com/thread-1878060-1-1.html
4.社交sdk接入
http://doc.ktplay.com/socialsdk/67.html
2015-01-28