![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity3d
小菜希
这个作者很懒,什么都没留下…
展开
-
c# 日期转化判断实用类
方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss方法二:Convert.ToDateTime(string, IFormatProvider)using System;using System.Globalization;namespace NetCoreDateTime{ class Progr...原创 2020-03-16 12:35:33 · 500 阅读 · 1 评论 -
unity使用离线许可证
原创 2020-02-21 12:26:41 · 4613 阅读 · 2 评论 -
[ET]开源卡五星4.0升5.0纪录之Protobuf生成
一、4.0的 protobuf 是直接在 unity 编辑器内生成的,直接解析proto文件生成响应的代码,在编辑器代码直接添加要生成的proto文件就行了,如下代码:内网 InnerMessage.proto 文件是在 InnerProto2CS类里的 public static class InnerProto2CS { private const string protoPath ...原创 2019-11-14 16:03:55 · 526 阅读 · 0 评论 -
unity累加计时和倒计时实现
/// <summary>/// 倒计时文本/// </summary>private Text RedRainTimerText;int hour;int minute;int second;int millisecond;// 1小时 时 分 秒float timeSpend = 4*60*60;private void FixedUpdate(...原创 2019-11-08 10:23:41 · 2202 阅读 · 0 评论 -
unity公告跑马灯实现
scene中的设置代码移动/// <summary>/// 公告跑马灯/// </summary>private Text NoticeText;public Vector3 Speed=new Vector3(2,0,0);public float _MoveEndPoint;public Vector2 _MoveStartPoint;public...原创 2019-11-08 10:21:00 · 1506 阅读 · 0 评论 -
棋牌游戏座位算法
参考内容网址如下:https://bbs.egret.com/thread-47694-1-1.html?tdsourcetag=s_pcqq_aiomsghttps://www.jianshu.com/p/9d5f40603d8c具体解释1、以麻将为例玩家A、B、C、D 座位如下C 2D 3 B1A 0首先获取所有玩家的服务器位置:Index = 0,1,...原创 2019-10-14 10:43:19 · 1789 阅读 · 0 评论 -
FairyGui中按钮单击和双击点击传递数据
通过控件的 data 传递1、单击事件this.fui.playerOperCodeComp.btnGai.self.onClick.Set(OnPlayerOperCodeClick);this.fui.playerOperCodeComp.btnGai.self.data = TexasPokerOperateType.PASS;private void OnPreOperCodeC...原创 2019-10-09 16:05:29 · 2899 阅读 · 0 评论 -
Unity3d中使用UGUI和 FairyGUI屏幕截图
一、UGUI 屏幕截图方法//根据screenshotRectTransform 进行截图 他的坐标点必须为0.0 不然会有偏差public IEnumerator CaptureScreen(Action<string> ScreenshotCall){ string ssname = "lastss.png"; string sspath = Path.Combine(A...原创 2019-10-09 15:57:30 · 1062 阅读 · 0 评论 -
unity3d中UGUI和FairyGui屏幕适配
UGUI 适配 //屏幕自适应 public const int IdealWide = 1280; public const int IdealHigh = 720; public void UIAdaption() { GameObject uiRoot=GameObject.Find("Global/UI/"); ...原创 2019-10-09 15:47:50 · 2466 阅读 · 0 评论 -
unity3d中android接入微信登陆
1.新建一个android空项目,包名随便,然后在该项目新建一个module,包名和unity中的包名保持一致。 2.module的build.gradle配置apply plugin: 'com.android.library'android { compileSdkVersion 28 android.packageBuildConfig = false ...原创 2018-06-30 15:14:16 · 3737 阅读 · 0 评论 -
Unity3d使用腾讯的游戏语音GVoice笔记
接入时报如下错误duplicate symbol _amp2Log2 in: /Users/***/workspace/*******/Publish/Debug/iOS/AppSotreXcodeProject/Libraries/libiPhone-lib.a(quant_bands.o) /Users/***/workspace/*******/Assets/Editor...原创 2018-08-01 16:24:20 · 1444 阅读 · 0 评论 -
Unity接入GME游戏多媒体引擎
离线语音课参考文章https://blog.csdn.net/cyf649669121/article/details/85246017官网文档https://cloud.tencent.com/document/product/607/15228官方SDK和demo下载网址https://cloud.tencent.com/document/product/607/18521如果麦克...原创 2019-03-18 12:03:15 · 2027 阅读 · 0 评论 -
记录下Android和iOS的深度链接接入详情
现在很多app都要支持一键拉起App,并在唤醒App后直达游戏房间(指定场景)IOS的是Universal Links,可以参考文章https://www.jianshu.com/p/77b530f0c67bAndroid的是Deep Links 和 App Linkshttps://www.jianshu.com/p/1632be1c24511.首先介绍2个免费的sdk,可以直接拉起A...原创 2019-03-23 11:26:31 · 1994 阅读 · 0 评论 -
Unity2018接入高德地图
首先需要的是安装 pods,具体参考https://www.cnblogs.com/sasuke6/p/4724116.htmlhttps://www.jianshu.com/p/1bb0ad42cb2e// 安装podssudo gem install cocoapods// 在项目路径初始化pod init// 搜索相关的包pod search// 安装pod ins...原创 2019-03-27 09:47:30 · 6794 阅读 · 0 评论 -
Unity2018接入第四方支付,采用WKWebView
unity跳转ios的webview,UnityAppController.mm// 跳转方法- (void)openBrower:(NSNotification *)notification{ NSString* strHtml = [notification.userInfo objectForKey:@"text"]; BrowserViewController *br...原创 2019-03-27 09:59:26 · 1609 阅读 · 0 评论 -
Unity2018接入微信登录
Info.plist 配置<key>CFBundleURLTypes</key><array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key&...原创 2019-03-27 10:12:41 · 6227 阅读 · 0 评论 -
unity3d中iPhone X关于Home键指示器适配
API我们知道了,可是加到哪里?然后通过分析Unity打包后的Xcode工程,在工程目录Classes->UI->UnityViewControllerBaseiOS.mm的脚本中,发现被重写的方法,如下:// 延迟系统手势- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures{ UIRectEdge res...转载 2019-03-28 10:08:25 · 1127 阅读 · 0 评论 -
unity如何同时打开多个工程
开发的过程中,总是只能打开一个工程而纳闷。原来unity也是可以多开的桌面图标,右键属性找到目标,在最后面加上 -projectPath应用,确定转载 2019-03-23 11:58:50 · 2741 阅读 · 0 评论