自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (6)
  • 收藏
  • 关注

原创 过往Android Studio 版本下载地址

地址为:

2024-07-30 12:54:29 282

原创 UGUI UILabel 首行缩进问题

问题描述:在使用Unity Ngui 组件UILabel,当组件选择高度适配允许换行,且文本内容超过两行时(见下图),如果需求为在首行添加缩进,通常,我们是在首行前添加两个空格,但是UI显示并没有达到我们的预期原因分析:通过查看多篇文章,可以得出结论,是UGUI官方Bug。字体里没有对应的空格符,我们使用的是中文动态字体,可能里面的放的是全角的空格解决方案:使用全角空格全角空格,可以实现缩进添加透明字符比如说,想在首行缩进两个汉字字符,可以在首行添加“[00000000]汉字[-] ”来

2021-06-11 14:22:11 387 1

原创 xlua 问题踩坑

Assets\XLua\Gen\UnityEngine_LightWrap.cs(173,39): error CS1061: 'Light' does not contain a definition for 'SetLightDirty' and no accessible extension method 'SetLightDirty' accepting a first argument of type 'Light' could be found (are you missing a using

2020-05-12 21:23:23 4639 8

原创 Unity 优化处理

1.MonoBehaviour脚本中,空跑Update函数会影响性能吗没有找到明确的资料,这里收集了一些其他博主的回答,希望看到的大佬能够给出解释;https://gameinstitute.qq.com/community/detail/122511

2020-05-12 20:26:54 168

原创 Git Connection refused

在进行项目GIt时,出现以下错误fatal: unable to access 'https://github.com/lagadic/visp/': Failed to connect to 127.0.0.1 port 1080: Connection refused可以尝试以下操作:检查是否有代理D:\visp-ws>git config --global http.pr...

2019-03-11 17:07:39 2626

原创 NLog学习

疑问点配置表针,Sources选择Code与Dll的区别是什么? 答:如何在外部拿到程序的日志文件 ·配置项Rules name和nameSpace,可指定命名空间下的某个类的日志输出;指定一个Target,之后就可以选择相应的等级;注意,这里平台要选择正确,不然不会打印日志;这里final选型:Indicates to stop rule processing if...

2018-09-14 17:27:21 140

转载 文件操作

<code class="hljs cs">using UnityEngine;#if UNITY_EDITORusing UnityEditor;using System;using System.IO;using System.Threading;public static class FileStaticAPI{ /// 检测文件是否存在Applicat...

2018-09-14 15:30:38 131

原创 是否点击了UI

if (Input.GetMouseButtonDown(0) || (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)) {#if !UNITY_EDITOR if (EventSystem.current...

2018-06-05 14:57:53 152

原创 www下载

IEnumerator IsCanConnect(string url) { HttpWebRequest req = null; HttpWebResponse res = null; bool CanCn = true; //设成可以连接; try { req = (H...

2018-06-05 14:57:00 1667

原创 视频属性介绍

视频属性介绍前言本文主要是用来整理并汇总有关视频的一些必备知识,以便在接触到相关开发时,不至于手足无措;视频的发展史及相关应用领域,不再赘述,自行百科,这里主要介绍比特率、帧速率、码率及一些相关计算的知识,如下图 数据速率是单独的视频部分的每秒有多少的数据你这里的情况就是 10070kbps帧速率 则是 该视频文件 每秒有多少格 你这个是25格总比特率 就是 视频的...

2018-03-18 21:21:17 8637

转载 string.Format对C#字符串格式化

string.Format对C#字符串格式化string.Format对C#字符串格式化出处常用的格式化数值结果表常用的几种实例格式化货币微软MSDN对string.format的方法说明:格式说明符 名称 说明标准 DateTime 格式字符串自定义 DateTime 格式字符串枚举格式字符串快捷键出处http://www.cnblogs....

2018-03-18 18:20:53 1158

原创 箭矢在3d世界做抛物线

这里使用的是模拟重力的方式,来使物体做抛物线运动,同时画出运动轨迹;当然,这里的代码是摘抄的两篇文章里的,在最后有两篇文章的连接,各位童鞋自行去看; 我主要说明一下,因为模拟重力做抛物线运动,这个没有问题,最主要的是如果物体是个箭矢(射箭的);那么这个箭矢的角度问题如何控制,很遗憾,没有做出来,不过以下代码只需要控制号好角度就能用: x -90至90度 y -45至45度 只要保证箭矢的角度

2017-12-29 19:57:20 828

原创 untiy 中的www读取文件

五、 www 5.1. 简介 简单的访问一个页面,通过一个指定url来创建一个www请求 5.2. http http : 每点击 一次,都会返回一个结果 。 tcp与udp都是底层socket通信,socket比他们更深层次的底层。 tcp: 长链接, 一直发送消息 。 有顺序。1 2 udp: 短链接,没有顺序的 。 2 1 5.2.1. get请求 ?

2017-09-21 22:03:52 560

原创 unity中ProtoBuffer的使用

一、 数据转换1.1. ProtoBufferproto: n. 原型;样机;典型 buffer : n. [计] 缓冲区;缓冲器,[车辆] 减震器 1.1.1. 简介 Protocol Buffers 是一种轻便高效的结构化数据存储格式,可以用于结构化数据串行化,或者说序列化。它很适合做数据存储或 RPC 数据交换格式。可用于通讯协议、数据存储等领域的语言无关、平台无关、可扩展的序列化结

2017-09-21 19:17:15 2130

原创 foreach遍历数组

代码如下:Console.WriteLine("请输入一行字符串:"); string str = Console.ReadLine(); Console.WriteLine("遍历数组后,输出的为:"); foreach (int i in str) { Console.

2017-06-10 17:20:06 1665

Picker for uGUI.unitypackage

Super ScrollView for UGUI gives easily-customizable ScrollView, based on UGUI ScrollRect. It is a set of C# sc ripts to help you create ScrollView that you need. It's very powerful and highly optimized for performance.

2020-07-11

Compass Navigator Pro 1.6.unitypackage

unity游戏导航指南系统源码Compass Navigator Pro 1.6 Requires Unity 5.1.1 or higher. Compass Navigator Pro is an UI component commonly used in adventure/world exploration games to show destinations and point of interests (POIs) as well as text indications. This package includes: - rich and customizable compass bar (4 designs), - 11 high quality icons in 2 colors each (22 icons in total), - 5 audio clips for the reveal effect.

2020-04-01

Easy Touch 5 Touchscreen Virtual Controls.unitypackage

unity 工具,可用于快速开发一些交互 3 / 18 What's new in EasyTouch 5 · Add namespace HedgehogTeam.EasyTouch. · Add Quick Gesture components. · Add new syntax to use EasyTouch in Update method. · EasyTouch class is now a singleton. · Build in PlayMaker Add-on. · You can choose to always send Swipe event during a drag. · Add TV_OS · Expose new touch data in Gesture Class (AltitudeAngle, AzimuthAngle, etc..)

2020-04-01

Unity-BestHTTP

用于Unity中的网络下载,Get Port 请求,有下载进度提示;

2018-08-02

Unity - NatCorder

NatCorder is a lightweight, easy-to-use, full-feature video recording API for iOS and Android. With NatCorder, you can record the screen, part of the screen, a specific camera, a texture, and so on. You can also record game audio from audio sources, listeners, and custom sources. NatCorder is heavily optimized for speed with a low memory footprint

2018-07-28

HTML游戏开发

本书详细讲解了HTML5的应用,并用十个经典游戏作为例子了来为初学者或资深编程人员提供学习。

2014-07-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除