37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
|
# PhxhSDK
|
|||
|
|
|||
|
# Unity游戏开发的SDK
|
|||
|
包含
|
|||
|
## 1 unity游戏开发的常用代码
|
|||
|
## 2 第三方代码
|
|||
|
|
|||
|
|
|||
|
## package manager里需要添加
|
|||
|
com.unity.mathematics
|
|||
|
com.unity.addressables
|
|||
|
|
|||
|
com.cysharp.unitask
|
|||
|
|
|||
|
|
|||
|
## TapTap
|
|||
|
需要在 Assets/Plugins/iOS/Resource 目录下创建 TDS-Info.plist 文件,复制若干代码并且替换其中的 ClientId, 参照Taptap接入文档。
|
|||
|
|
|||
|
|
|||
|
package manager里需要添加
|
|||
|
"dependencies":{
|
|||
|
"com.taptap.tds.login":"https://github.com/TapTap/TapLogin-Unity.git#3.25.0",
|
|||
|
"com.taptap.tds.common":"https://github.com/TapTap/TapCommon-Unity.git#3.25.0",
|
|||
|
"com.taptap.tds.bootstrap":"https://github.com/TapTap/TapBootstrap-Unity.git#3.25.0",
|
|||
|
"com.leancloud.realtime":"https://github.com/leancloud/csharp-sdk-upm.git#realtime-2.3.0",
|
|||
|
"com.leancloud.storage":"https://github.com/leancloud/csharp-sdk-upm.git#storage-2.3.0",
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
## CrashSight
|
|||
|
若要安卓打包成功
|
|||
|
plugins android lib 下 只留 armeabi-v7a
|
|||
|
|
|||
|
若要xcode,打包成功
|
|||
|
target:UnityFramework,
|
|||
|
build phrase -> link binary with library 添加 MetricKit.framework
|
|||
|
build settings -> other link flag 加上 -ld64
|