自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 收藏
  • 关注

原创 Unity Spine笔记

1.官网spine-unity Runtime Documentation2.spine导出设置 图集类型为.atlas.txt 不然unity不自动识别3.spine编辑器版本需和 spine_unity插件版本一致4.由于spine3.83.75破解版传播太多 spine_unity插件里对"3.8.75"版的spine文件做了屏蔽 导入unity时提示异常信息"Unsupportedskeletondata,pleaseexportwithanewerversionof...

2021-09-10 17:22:51 1109

原创 Unity Csv2Csharp

1.在unity中右键csv文件 生成这张表的Csharp类2.表的第一行 C#类的全类名 必须带命名空间3.表的第二行 字段名 一个格子一个字段4.表的第三行 字段类型 一个格子一个类型支持少数类型(string,int, float,Array)5.表的第二行 字段注释 一个格子一个字段 给策划看的using System;using UnityEngine;using UnityEditor;using System.Collections.Generic;using .

2021-09-10 16:40:50 408

原创 UnityEditor绘制路径

用于绘制一条固定路线using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;public class DrawLine : MonoBehaviour{ public List<Vector3> Path=new List<Vector3>{}; public Vector3 Offset;#if UNITY_EDIT

2021-08-31 11:52:15 497

原创 LineRender曲线脚本

using System.Collections;using System.Collections.Generic;using Unity.Collections;using UnityEngine;[RequireComponent(typeof(LineRenderer))]public class LineEdit : MonoBehaviour{ public AnimationCurve X,Y,Z; public int Count; public Vec.

2021-07-30 14:07:51 433

原创 UnityEditor笔记

1.创建节点:https://gram.gs/gramlog/creating-node-based-editor-unity/2.Hierarchy窗口右键菜单 如: [MenuItem("GameObject/PrintPath",priority=-100)] ,使用Selection获取选择对象3.特性[TextArea(5,10)] string字段在Inspector窗口多行显示...

2021-07-26 17:52:11 83

原创 Unity 获取本机IP

public static IPAddress GetIP(AddressFamily Addfam=AddressFamily.InterNetwork) { if (Addfam == AddressFamily.InterNetworkV6 && !Socket.OSSupportsIPv6) { return null; } //本地地址.

2021-07-26 11:50:43 172

原创 TimeLine笔记

1.按轨道组播放using System;using UnityEngine.Playables;using UnityEngine.Timeline;public static class PlayableDirectorHelper{ public static void SetTLGroupUnMuted(this PlayableDirector playerDirector,params string[] names) { TimelineAsset

2021-06-12 12:38:48 109

原创 unity Udp示例

usingSystem.Collections;usingSystem.Collections.Generic;usingSystem;usingSystem.Net;usingSystem.Net.Sockets;usingUnityEngine;namespaceFGUFW.Core{publicstaticclassUdpBroadcastUtility{publicconstintBROADCAS...

2021-06-10 23:28:18 224 1

原创 Unity常用算法

/// <summary> /// 匀加速位移 /// </summary> /// <param name="startSpeed">起始速度</param> /// <param name="acceleration">加速度</param> /// <param name="time">时间</param> /// <returns>&l...

2021-06-07 15:13:34 862 1

原创 Unity Camera笔记

1.正交模式:Orthographic 视锥高等于size*22.透视模式:Perspective

2021-06-05 11:46:30 238 1

原创 TortoiseGit笔记

1.开机启动pageantC:\Users\FeiGe\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

2021-05-30 17:43:00 100

原创 Unity 执行shell

/// <summary> /// 执行shell /// </summary> /// <param name="command">应用路径</param> /// <param name="argument">参数</param> public static void ProcessCommand(string command, string argument) { ...

2021-05-26 16:59:47 566

原创 Unity ILRuntime编译命令

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe F:\UnityProjects\Test\Assets\Samples\ILRuntime\1.6.7\Demo\HotFix_Project~\HotFix_Project.csproj /t:Rebuild /p:Configuration=Releasepause

2021-05-26 16:50:54 163

原创 ffmpeg笔记

1.批量视频格式转换for %%a in ("*.rmvb") do ffmpeg -i %%a %%~na.mp4pause

2021-05-25 09:20:38 50

原创 游戏世界构造

1.基础元素(地水风火) 1.1 地: 土,金,木,磁 1.2 水: 水,冰 1.3 风: 风,空间 1.4 火: 火,光,雷电 1.5:对象由多元素构成 纯元素体少见2.人乃天生道体[暂定] 2.1:方便人类审美3.AI遗传进化 3.1:游戏AI可遗传进化 且要方便移植4.传统神话设定 4.1 轮回: 游戏中生灵的生死更迭 4.2 功德: 金色光 有助于世界运转的行为皆可增加 如超度亡魂有助于轮回系统......

2021-05-25 00:56:05 127

原创 Unity Android开发笔记

1.unity2018后支持安卓源文件在unity中编译 常用模板package com.fgbbt.FileTransfer; //包名 改称自己的import android.os.Bundle;import android.util.Log;import com.unity3d.player.UnityPlayer;import com.unity3d.player.UnityPlayerActivity;public class MainActivity extends Un

2021-05-10 15:36:14 132

原创 小说换行错误处理

using System;using System.Collections;using System.Collections.Generic;using System.IO;using UnityEngine;public class TextEditor : MonoBehaviour{ public string SavePath = "D:/save.txt"; public string LoadPath = "D:/load.txt"; // Start i.

2021-03-18 20:39:47 376

原创 unity webgl笔记

1.发布后添加web.config文件<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <staticContent> <remove fileExtension=".unityweb" /><mimeMap fileExtension=".unityweb" mimeType="application/o

2021-01-27 11:26:00 141

原创 Unity创建字体

static void CreateFontSprite() { if (Selection.objects == null) return; if (Selection.objects.Length == 0) { Debug.LogWarning("没有选中Sprite文件,需要将Sprite Mode设置成Multiple,切分好,并且以以名字的最后一个字符当做ascii码"); retu...

2020-12-22 16:08:19 362

原创 Unity性能优化

1.删除组件无用周期函数2.不要在awake,start里做重度操作 避免应用启动黑屏时间过长3.多次修改动画控制器 参数字符串转hash码(通用于各种字符串为参数的unity api)4.不用重力传感器时关闭它5.移动带有刚体的游戏对象时建议使用刚体的移动函数6.避免频繁gameobject.find游戏对象 getcomponent组件 可以缓存起来用7.纹理设置: 纹理size做到当前平台满足效果的最小值 纹理size做到POT(size为2的幂次方)...

2020-10-20 22:59:46 184

原创 Unity笔记

1.防止模型被相机裁剪 Animator.cullingMode =AnimatorCullingMode.AlwaysAnimate SkinnedMeshRenderer.updateWhenOffscreen = true

2020-07-08 16:57:54 120

原创 求职与职业

空白白白白​数据分析话题的优秀回答者专业已有 1 人赠与了专业徽章533 人赞同了该回答知乎私信一直有人向我倾诉,他们遇到了自己的职业瓶颈:“做了很久的程序员,薪资不再涨,技能也不能快速进步,随着年纪越来越大,反而越来越迷茫。”“我是一名运营,做了五年了,虽说工资还可以,但却感到很焦虑。”同时他们也会向我提问:“为什么空白你总是在快要遇到职业瓶颈的时候,做出选择,突破自己?”“从程序员到数据分析再到咨询顾问,你每一步都走得很稳,也走得很自信。你...

2020-06-19 17:31:11 1338

原创 画图shader

1.画圈 内外渐变色 可调整片段Shader "ring"{ Properties { _Color1 ("Color1", Color) = (1,1,1,1) //内圈颜色 _Color2 ("Color2", Color) = (1,1,1,1) //外圈颜色 _ColorLerp ("ColorLerp", Range(0,2)) = 0 _MaxRadius ("MaxRadius", Range(0,0.5)) = 0.5 _MinRadius ("MinRadi

2020-05-22 14:33:52 203

原创 软件框架设想

1.横向分模块纵向分层2.模块之间接口隔离3.热插拔4.善用blittable类型

2020-04-21 19:49:21 170

原创 Unity UGUI可用的unicode特殊字符

←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪⇫⇬⇭⇮⇯⇰⇱⇲⇳⇴⇵⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿∀∁∂∃∄∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟∠∡∢∣∤∥∦∧∨∩∪∫∬∭∮∯∰∱∲∳∴∵∶∷∸∹∺∻∼∽∾∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑...

2020-04-02 19:35:57 2453

原创 unity sqlite笔记

开发环境Unity2018.4 .net4.x目标平台pc,android引用库 从Editor\Data\Mono\lib\mono\2.0 导入 Mono.Data.Sqlite.dll (不需要System.Data.dll)从网上下载sqlite.dll libsqlite3.so 或者https://github.com/feigebabata/unityTools/tree...

2020-03-28 15:46:51 169

原创 Unity ShaderLab笔记

环境光: float4 UNITY_LIGHTMODEL_AMBIENT模型顶点转片元坐标: float4UnityObjectToClipPos(float4)模型法线转世界法线:float3UnityObjectToWorldNormal(float3)模型顶点转世界顶点变换矩阵: float4unity_ObjectToWorld世界顶点视线 float3 Unity...

2019-12-01 23:31:46 139

原创 vscode笔记

1.ctrl + p 打开新文件覆盖当前窗口问题"workbench.editor.enablePreview": false2.无法识别opencv库成员"python.linting.pylintArgs": ["--generate-members"]

2019-08-22 14:30:37 209

转载 python实体组件库

https://github.com/Aenyhm/entitas-python?tdsourcetag=s_pctim_aiomsg先存着以后再看

2019-04-23 21:01:55 156

转载 瓦片地图

1.瓦片地图原理-实验数据https://segmentfault.com/a/11900000112767882.unity lbs瓦片地图(不需要SDK)https://blog.csdn.net/flash099/article/details/53995468

2019-03-19 17:23:25 271

转载 神经网络算法收藏

 1. 见过最好的神经网络CNN解释(卷积网络)https://blog.csdn.net/ruiyiin/article/details/771139732.在线卷积网络手写数字识别(3d视图)http://www.cs.cmu.edu/~aharley/vis/fc/...

2018-11-27 18:25:51 127

转载 python+opencv图像识别教程整理

0.opencv-python教程及API(英文)https://opencv-python-tutroals.readthedocs.io/en/latest/index.html1.图像身份识别 一个印度小伙写的 一手记事本开发 甚吊https://thecodacus.com/category/opencv/page/2/#.W8b6nc4zaUk2.圆形检测和满...

2018-10-17 18:01:57 4154

原创 手机陀螺仪控制相机

1.横屏视图 ,竖屏没试过using System.Collections; using System.Collections.Generic; using UnityEngine; /// &lt;summary&gt; /// 直接挂载这个脚本即可通过陀螺仪来控制摄像机的旋转 /// &lt;/summary&gt; public class CameraRot...

2018-10-15 17:35:40 887

原创 C# WebSocket的应用

因为服务端用蛋疼的websocket通讯,客户端用socket好像用不了(反正我不会),然后尝试使用ClientWebSocket进行开发,下面程序在关闭连接的时候有问题,暂时将就着using System.Collections;using System.Collections.Generic;using UnityEngine;using System;using System....

2018-09-30 14:53:29 1500

原创 排序算法

虽然是在重复造轮子但经常考1.快速排序:原理很简单(升序)取一个标志参数(数组中的某一个值)然后,把数组中小于标志参数的放到标志参数的左边,把数组中大于标志参数的放到标志参数的右边,然后以标志参数为界限分成了两个新数组,对新数组重复上述操作直到数组当前有序(有些晕 看动图)有些拿现实中的例子类比(一堆书一落卷子啥的),但数组是没有插入,平移功能的出于性能的考虑代码没有冒泡那么简单易...

2018-08-23 00:03:05 113

转载 unity 根据高度图生成地形

今天翻官方案例看到这个不错的功能 地形组件也有导入高度图的功能 但试了下没成功这个脚本直接自建模型 放入张贴图(最好是灰度图,尺寸是2的次方) 做联机游戏可以考虑用高度图来共享地形可惜是js写的 以后有空再翻译成C#吧// This script is placed in public domain. The author takes no responsibility for any possi...

2018-06-23 10:57:35 5334 2

原创 unity 文件下载到外存

这个脚本是用来下载assetbuild的 unity2017.3的UnityWebRequest新增了DownloadHandlerFile的支持函数,可以直接将文件下载到外存(可以少写很多代码),也用来把StreamingAssets里的文件复制到persistentDataPath(在移动端C#的IO库好像读不了StreamingAssets里的文件)*unity2017.2的UnityWeb...

2018-06-23 01:41:47 2469 1

转载 unity 在透明模型上显示阴影

为了搞清AR中模型的阴影实现,找了一整天,最后在ARKit插件中找到了这个shader*我在unity2017.3中使用有些问题 充当透明地面的模型总是纯黑色 这时再加一个相机 这情况有会消失 谁搞清楚了请回复下//这是基于来自一个着色器 https://alastaira.wordpress.com/2014/12/30/adding-shadows-to-a-unity-vertexfragm...

2018-06-23 01:21:55 6268 4

空空如也

空空如也

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

TA关注的人

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