随笔分类 - Unity
摘要:iTween oncomplete回调不工作 iTween.MoveTo (newBoom, iTween.Hash "y", 100f, "speed",Boomspeed, "EaseType",BoomeaseType, "LoopType",BoomloopType, "oncomplete
阅读全文
摘要:Unity打包时报错: MacOS Unity UnauthorizedAccessException: Access to the path `/Applications/Unity2018.4.23/PlaybackEngines/iOSSupport/Trampoline/build/Shar
阅读全文
摘要:Unity "xxx Class" is missing the class attribute 'ExtensionOfNativeClass'翻译:‘xxx Class’缺少类属性 `ExtensionOfNativeClass` 这个就是当脚本继承了MonoBehaiour, 才会有这个属性;
阅读全文
摘要:发布过unity+admob iOS包的开发者应该都有体会,构建版本时unity会很长时间卡在pod install这个过程中,特别是在第一次执行构建xcode项目时,可能整个过程耗时要一个下午! 在这个过程中它会把 https://github.com/CocoaPods/Specs.git 克隆
阅读全文
摘要:环境如下 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/
阅读全文
摘要:以前做安卓开发的时候是用Ecliplse+Android sdk,每次sdk版本更新的时候都是要去网路上搜索并下载对应的sdk版本(有时候某些站点还不能直接访问,只能另外寻找国内的镜像站点);Android Studio出现后把安装和更新sdk版本的过程集成到IDE里,省去网络搜索下载的麻烦,确实方
阅读全文
摘要:Json数据如下: { "data": [{ "id": 141, "layoutLabel": "Sameer", "hasCustomProb": 1 }, { "id": 214, "layoutLabel": "abc", "hasCustomProb": 0 } ], "status":
阅读全文
摘要:AudioListener.pause = true; // or AudioListener.volume = 0; Ref: https://answers.unity.com/questions/52109/how-do-i-mute-all-audio-sound.html
阅读全文
摘要:新建系统环境变量 JAVA_HOME JAVA_HOME = jdk安装目录路径 修改系统环境变量 Path 在后面添加: ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; 新建系统环境变量 CLASSPATH CLASSPATH = .;%JAVA_HOME%\lib\d
阅读全文
摘要: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
阅读全文
摘要:using System; using System.Collections; using UnityEngine; // This class just convert from CharacterMotor.js to C# [RequireComponent(typeof(CharacterC
阅读全文
摘要:问题1: Specs satisfying the 'Google-Mobile-Ads-SDK(->7.68)' dependency were found, but they required a higher minimun deployment target. 解决办法: 把Minimun
阅读全文
摘要:Windows系统:“C:\Users\你的登录用户名\AppData\Roaming\Unity\Asset Store-5.x”备注:Appdata文件夹默认隐藏,需显示隐藏文件夹才可看到。 注意:更新Unity Asset Store中的插件时,最好先把本地的缓存文件删掉,否则有可能更新不到最
阅读全文
摘要: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
阅读全文
摘要:Unity5的Lightmap管线与Unity4的有很大的不同了,u5不能直接使用u4的lightmap。但是u5中,可以把u4的lightmap当作光照贴图来使用,就像一张普通的贴图一样,具体可以参考 Lightmap-xxxx.shader之类的shader, 如:Lightmap-Bumped
阅读全文
摘要: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...
阅读全文
摘要:升级Xcode之后,编译之前的代码,出现Cannot create __weak reference in file using manual reference counting解决方法: 在Build Settings--------->Aplle LLVM9.0 - Language - Objectibe-C------------->Weak Reference In Manual Re...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:using UnityEngine; using System.Collections; using System.Runtime.InteropServices; public class ComManager { [DllImport("__Internal")] // ios手机的当前语言...
阅读全文
浙公网安备 33010602011771号