随笔分类 -  Unity

摘要:Json数据如下: { "data": [{ "id": 141, "layoutLabel": "Sameer", "hasCustomProb": 1 }, { "id": 214, "layoutLabel": "abc", "hasCustomProb": 0 } ], "status": 阅读全文
posted @ 2022-12-25 11:47 opencoder 阅读(154) 评论(0) 推荐(0) 编辑
摘要:AudioListener.pause = true; // or AudioListener.volume = 0; Ref: https://answers.unity.com/questions/52109/how-do-i-mute-all-audio-sound.html 阅读全文
posted @ 2022-12-17 10:44 opencoder 阅读(131) 评论(0) 推荐(0) 编辑
摘要:新建系统环境变量 JAVA_HOME JAVA_HOME = jdk安装目录路径 修改系统环境变量 Path 在后面添加: ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; 新建系统环境变量 CLASSPATH CLASSPATH = .;%JAVA_HOME%\lib\d 阅读全文
posted @ 2021-08-14 15:04 opencoder 阅读(60) 评论(0) 推荐(0) 编辑
摘要:public class DragRigidbody : MonoBehaviour { const float k_Spring = 50.0f; const float k_Damper = 5.0f; const float k_Drag = 10.0f; const float k_Angu 阅读全文
posted @ 2021-08-02 11:36 opencoder 阅读(71) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections; using UnityEngine; // This class just convert from CharacterMotor.js to C# [RequireComponent(typeof(CharacterC 阅读全文
posted @ 2021-07-27 16:00 opencoder 阅读(195) 评论(0) 推荐(0) 编辑
摘要:问题1: Specs satisfying the 'Google-Mobile-Ads-SDK(->7.68)' dependency were found, but they required a higher minimun deployment target. 解决办法: 把Minimun 阅读全文
posted @ 2021-02-25 18:17 opencoder 阅读(647) 评论(0) 推荐(0) 编辑
摘要:Windows系统:“C:\Users\你的登录用户名\AppData\Roaming\Unity\Asset Store-5.x”备注:Appdata文件夹默认隐藏,需显示隐藏文件夹才可看到。 注意:更新Unity Asset Store中的插件时,最好先把本地的缓存文件删掉,否则有可能更新不到最 阅读全文
posted @ 2021-02-25 12:11 opencoder 阅读(1268) 评论(0) 推荐(0) 编辑
摘要:How to solve this problem? Solution no. 1: Solution no. 2: Solution no. 3: Open termina and copy pastplease use following command $ cd ~ $ mv .itmstra 阅读全文
posted @ 2020-12-17 17:22 opencoder 阅读(386) 评论(0) 推荐(0) 编辑
摘要:Unity5的Lightmap管线与Unity4的有很大的不同了,u5不能直接使用u4的lightmap。但是u5中,可以把u4的lightmap当作光照贴图来使用,就像一张普通的贴图一样,具体可以参考 Lightmap-xxxx.shader之类的shader, 如:Lightmap-Bumped 阅读全文
posted @ 2020-11-01 19:58 opencoder 阅读(252) 评论(0) 推荐(0) 编辑
摘要:Unity Editor Error :Invalid AABB aInvalid AABB aabbInvalid AABB rkBoxThe above errors caused by Nan value exists in transform properies like: position, rotation or scale. This may come from division b... 阅读全文
posted @ 2020-07-23 16:22 opencoder 阅读(1764) 评论(0) 推荐(0) 编辑
摘要:升级Xcode之后,编译之前的代码,出现Cannot create __weak reference in file using manual reference counting解决方法: 在Build Settings--------->Aplle LLVM9.0 - Language - Objectibe-C------------->Weak Reference In Manual Re... 阅读全文
posted @ 2020-05-30 18:25 opencoder 阅读(927) 评论(0) 推荐(0) 编辑
摘要:sudo rm -rf /Library/Developer/CommandLineTools xcode-select –install sudo xcodebuild -license accept open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg Ref: http... 阅读全文
posted @ 2020-04-15 10:40 opencoder 阅读(498) 评论(0) 推荐(0) 编辑
摘要:Like a lot of things, the process of creating a launch screen for an iOS app has changed over time, and not necessarily for the simpler. Originally I had a launch screen image set in the Asset Catalog... 阅读全文
posted @ 2020-04-08 15:51 opencoder 阅读(629) 评论(0) 推荐(0) 编辑
摘要:using UnityEngine; using System.Collections; using System.Runtime.InteropServices; public class ComManager { [DllImport("__Internal")] // ios手机的当前语言... 阅读全文
posted @ 2020-03-16 10:47 opencoder 阅读(985) 评论(0) 推荐(0) 编辑
摘要:#if UNITY_IPHONE || UNITY_EDITOR const string APP_ID = "564457517"; var url = string.Format( "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Pur... 阅读全文
posted @ 2020-03-16 10:40 opencoder 阅读(175) 评论(0) 推荐(0) 编辑
摘要:在我们的游戏开发过程中,我陆陆续续做了一些防外挂与防破解工作,这里记录总结一下。 随机数校验 为了让玩家的操作体验更好,游戏开发之初,我决定把战斗计算放在前端实现,战斗结束之后,后端校验前端发来的数据。最简单直接的校验方法就是:按照前端的实现方法,后端实现战斗计算,逐条验证前端发来的战报。这种方法简单、直接,非常可靠,缺点一是维护前后端两份代码,比较麻烦,我不想做重复性工作;二是消耗服务器CPU资... 阅读全文
posted @ 2020-03-16 10:19 opencoder 阅读(1427) 评论(0) 推荐(0) 编辑
摘要:LitJson http://lbv.github.io/litjson/ 教程: http://www.cnblogs.com/neverdie/p/3777992.html LitJSON问题总结 http://blog.csdn.net/n5/article/details/45030063 LitJSON源码下载 http://lbv.github.io/litjson/ 阅读全文
posted @ 2020-03-16 10:15 opencoder 阅读(181) 评论(0) 推荐(0) 编辑
摘要:// Application.streamingAssetsPath 获取StreamingAssets文件夹的物理路径 IEnumerator Start() { string Url ="file://"+Application.streamingAssetsPath + "/1.jpg"; WWW www = new WWW(Url); ... 阅读全文
posted @ 2020-03-16 08:49 opencoder 阅读(2248) 评论(0) 推荐(0) 编辑
摘要:Input.acceleration :竖直拿着设备(home按钮在底部),X轴指向右,Y轴指向上,Z轴指向前。 加速度传感器数值可能被颠簸影响。应用低通过过滤器可以是它平滑,摆脱干扰。 阅读全文
posted @ 2020-03-16 08:46 opencoder 阅读(416) 评论(0) 推荐(0) 编辑
摘要:obb文件命名为: main.版本号.产品名字.obb 如 main.7.com.rockstargames.gtav.obb 怎么测试?把obb文件 放到sdcard\android\data\包名\ 或者 sdcard\android\obb\包名\ 目录下, 如下图所示: 阅读全文
posted @ 2020-03-16 08:44 opencoder 阅读(642) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示