c#
龍少-浪花有意千里雪
平凡从容,不失自我
展开
-
get_transform is not allowed to be called from a MonoBehaviour constructor (or instance field initia
get_transform is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead.这个问题的出现,千万不能出现,出现就说明你的代码质量不够高,stupidcode man!!! or girl…Err原创 2016-09-01 10:18:54 · 14510 阅读 · 1 评论 -
Unity3d ios 微信链接分享好友,朋友圈的一些坑
我主要是微信链接分享 1.首先是图标大小限制, android: http://blog.csdn.net/dl10210950/article/details/53125589 ios参考: http://blog.csdn.net/wzw_2015/article/details/52295932// ------这种方法对图片既进行压缩,又进行裁剪- (NSData *)im...原创 2018-02-13 23:38:57 · 1864 阅读 · 0 评论 -
You are trying to load data from a www stream which had the following error,Unsupported protocol
最近研究www 加载本地图片,总是报 unity3d You are trying to load data from a www stream which had the following error,Unsupported protocol; 各种百度,无果,坚持就是胜利, 最后发现我的路径写错了,路径要加上”file:///”: “file:///”+myPath; 这样再运行就没有原创 2017-11-13 17:47:45 · 3199 阅读 · 1 评论 -
新手学xingo golang服务器之-golang和unity3d的Protobuf生成(三)
xingo协议用的是Protobuf, 如果是Unity3d客户端也要生成Protobuf, 因此在这里我提取出来进行一下说明: 从网上找了一个unity3d的protobuf生成工具,我把它fork了一下: https://github.com/atgczcl/UnitySocketProtobuf3Demo 或 https://github.com/Mikejinhua/Uni原创 2017-08-07 16:31:14 · 2278 阅读 · 0 评论 -
我学xingo golang服务器之-Unity3d c#多玩家同屏出生过程和AI处理分解
上一节 我学xingo golang服务器之-Unity3d c# 协议api分解 http://blog.csdn.net/atgczcl/article/details/75076884 分析了xingo_demo_unity3d 对服务器协议的处理流程 处理过程中涉及到了unity3d 多玩家同步和出生过程,这块我觉得有xingo项目写的有点难度,所以提取出来进行分解一下; Unit原创 2017-07-13 18:21:46 · 1400 阅读 · 0 评论 -
我学xingo golang服务器之-Unity3d c# 协议api分解
上一节, http://blog.csdn.net/atgczcl/article/details/75049963 学习了xingo服务器处理客户端api的流程, 这一节进行服务器下发数据,u3d进行分解处理: unity3d c# protobuf生成:protogen -i:msg.proto -o:msg.cs -ns:Pbpause如果你把protoc.exe和protogen.原创 2017-07-13 16:28:36 · 1289 阅读 · 0 评论 -
Animator does not have an AnimatorController
Animator does not have an AnimatorController unity3d 5.6.xx会报这个警告; Animator does not have an AnimatorController,这是因为,unity3d 要播放这个动画必须保证这个对象是activeself = true的,所以如果是 activeself = false那就会有这个警告了,解决方案就原创 2017-06-05 15:18:40 · 6243 阅读 · 2 评论 -
ulua lua中的时间戳实现中出现的数值类型问题,long错误不能识别的解决方案
ulua中的时间戳第一种c#方法:/// <summary> /// Gets the time. cgq“yeg°ãó{ /// </summary> /// <returns>The time.</returns> public static double GetTime() { TimeSpan ts = n原创 2017-04-08 22:53:25 · 2703 阅读 · 0 评论 -
unity3d animator state play once 播放一次的研究
第一种方法:无非就是状态机设置参数变化,再变回来,animator.SetBool("statename", true);//结束动画之后找个地方然后animator.SetBool("statename", false);这种难处就是 1.回调(可以在Animation设计中添加回调), 2.定时回归, 3.不用的时候回收时候.第二种方法:animator.Play("donghuaSt原创 2017-04-08 22:38:09 · 8153 阅读 · 2 评论 -
Unity3d 2018 bundle crash 打包崩溃问题的查找修复
Unity3d 2018 bundle打包崩溃问题的查找修复unity2018有很多新特性,尤其引入了嵌套prefab,有点不习惯,但是还是要学习和用,这里整理一下bundle build奔溃的问题;问题:我在项目中build bundle 莫名其妙unityEditor就闪退了,查找好多资料和网上资料都没有找到问题script missing就不说了,查找到改了,一样会闪退,所以不是这个问...原创 2019-09-18 17:26:44 · 3070 阅读 · 1 评论