随笔分类 -  Unity

摘要:EditorUtility.DisplayProgressBar("Modify Prefab", "Please wait...", 0); string[] ids = AssetDatabase.FindAssets("t:Prefab", new string[] { "Assets/Res 阅读全文
posted @ 2024-12-30 15:54 opencoder 阅读(45) 评论(0) 推荐(0) 编辑
摘要:火狐浏览器Firefox历史版本官方下载地址: https://ftp.mozilla.org/pub/firefox/releases/ 或者通过如下链接下载: https://download.mozilla.org/?product=firefox-17.0&os=linux&lang=zh- 阅读全文
posted @ 2024-12-17 12:06 opencoder 阅读(48) 评论(0) 推荐(0) 编辑
摘要:Unity项目,不带任何SDK导出项目是没有问题的,一旦加入Admob, facebook之后,就会出现:CocoPods Installation failure 升级MAC OS系统,升级SDK版本,升级Unity版本时,该问题是经常发生!发生该问题表示项目中用pod管理的sdk未下载下来配置好 阅读全文
posted @ 2024-11-07 10:24 opencoder 阅读(37) 评论(0) 推荐(0) 编辑
摘要:CMP dest, src0, src1, src2 Choose src1 if src0 >= 0. Otherwise, choose src2. The comparison is done per channel. dest = ((src0 >= 0) ? 1.0 : 0.0) * (s 阅读全文
posted @ 2024-11-04 12:06 opencoder 阅读(8) 评论(0) 推荐(0) 编辑
摘要:.obj 文件保存的内容非常有限:顶点、纹理坐标(最多一套)、法线、三角面;它不支持顶点色、多套纹理坐标(uv2, uv3)、TANGENT、BINORMAL、骨骼权重。 搜索某度,被其内容所误导,花费不少时间 搜索.obj文件支持多套纹理坐标方式,未果! 后在Blender中尝试导出带有2套纹理坐 阅读全文
posted @ 2024-10-25 22:51 opencoder 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Unity Shader参考入口 Vertex and fragment shader Shader "Unlit/NewUnlitShader" { Properties { _MainTex ("Texture", 2D) = "white" {} } SubShader { Tags { "R 阅读全文
posted @ 2024-10-24 10:30 opencoder 阅读(9) 评论(0) 推荐(0) 编辑
摘要:方法1: 使用Application类下的CaptureScreenshot方法 void CaptureScreen() { Application.CaptureScreenshot("Screenshot.png", 0); } 这个方法,截取的是某一帧时整个游戏的画面,或者说是全屏截图。 不 阅读全文
posted @ 2024-10-21 15:32 opencoder 阅读(805) 评论(0) 推荐(0) 编辑
摘要:The .sbsasm file can be copied out of the SubstanceArchive. Export it raw and delete everything before "SBAM" in a hex editor. The only issue is the . 阅读全文
posted @ 2024-07-06 09:38 opencoder 阅读(33) 评论(0) 推荐(0) 编辑
摘要:chmod a+x ./MapFileParser.sh 操作如下: 阅读全文
posted @ 2024-05-25 15:50 opencoder 阅读(22) 评论(0) 推荐(0) 编辑
摘要:Unity5 APIUpdater encountered some issues and was not able to finish. Ran the updater, then searched the editor log for "upgradable" or "UnityUpgradab 阅读全文
posted @ 2024-02-15 11:12 opencoder 阅读(14) 评论(0) 推荐(0) 编辑
摘要:// Upgrade NOTE: replaced '_Projector' with 'unity_Projector' // Upgrade NOTE: replaced '_ProjectorClip' with 'unity_ProjectorClip' Shader "Projector/ 阅读全文
posted @ 2023-12-31 11:00 opencoder 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Shader "ZX/BaseVertFragmentShadow" { Properties { _DiffuseTexture ("Diffuse Texture", 2D) = "white" {} _DiffuseTint ( "Diffuse Tint", Color) = (1, 1, 阅读全文
posted @ 2023-12-31 10:57 opencoder 阅读(12) 评论(0) 推荐(0) 编辑
摘要:在Windows10上用Unity4.7导出项目,然后拷贝到MacMini上用XCode14.2编译构建项目。尝试下发现有不少问题,最后没有能成功打包。走过路过的高手,知道这其中缘由的还请指教下,不胜感激! libstdc++.a 库文件缺失 库文件缺失,解决办法:用Xcode 9.3版本补充即可, 阅读全文
posted @ 2023-09-06 17:50 opencoder 阅读(84) 评论(0) 推荐(0) 编辑
摘要:对于Mac Mini Apple M1 2020来说,因为更新到了MacOS 13.4.1 ,在该设备上不能打开Unity 2017/2018了。所以采用另外的方式来构建ios版本:在windows10系统上导出ios build, 然后把该build拷贝到mac minini上来构建。尝试了该方式 阅读全文
posted @ 2023-09-06 17:06 opencoder 阅读(385) 评论(0) 推荐(0) 编辑
摘要:iTween oncomplete回调不工作 iTween.MoveTo (newBoom, iTween.Hash "y", 100f, "speed",Boomspeed, "EaseType",BoomeaseType, "LoopType",BoomloopType, "oncomplete 阅读全文
posted @ 2023-04-16 12:24 opencoder 阅读(107) 评论(0) 推荐(0) 编辑
摘要:Unity打包时报错: MacOS Unity UnauthorizedAccessException: Access to the path `/Applications/Unity2018.4.23/PlaybackEngines/iOSSupport/Trampoline/build/Shar 阅读全文
posted @ 2023-03-04 14:29 opencoder 阅读(619) 评论(0) 推荐(0) 编辑
摘要:Unity "xxx Class" is missing the class attribute 'ExtensionOfNativeClass'翻译:‘xxx Class’缺少类属性 `ExtensionOfNativeClass` 这个就是当脚本继承了MonoBehaiour, 才会有这个属性; 阅读全文
posted @ 2023-03-04 14:03 opencoder 阅读(1283) 评论(0) 推荐(0) 编辑
摘要:发布过unity+admob iOS包的开发者应该都有体会,构建版本时unity会很长时间卡在pod install这个过程中,特别是在第一次执行构建xcode项目时,可能整个过程耗时要一个下午! 在这个过程中它会把 https://github.com/CocoaPods/Specs.git 克隆 阅读全文
posted @ 2023-03-01 12:46 opencoder 阅读(346) 评论(0) 推荐(0) 编辑
摘要:环境如下 os: macOS Monterey 12.6, XCode 14.2执行命令: sudo xcode-select -s /Applications/Xcode.app sudo xcode-select --install sudo gem install -n /usr/local/ 阅读全文
posted @ 2023-03-01 11:51 opencoder 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:以前做安卓开发的时候是用Ecliplse+Android sdk,每次sdk版本更新的时候都是要去网路上搜索并下载对应的sdk版本(有时候某些站点还不能直接访问,只能另外寻找国内的镜像站点);Android Studio出现后把安装和更新sdk版本的过程集成到IDE里,省去网络搜索下载的麻烦,确实方 阅读全文
posted @ 2022-12-25 12:37 opencoder 阅读(1288) 评论(0) 推荐(0) 编辑

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