自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

月夜何干

重置,展望

  • 博客(47)
  • 资源 (21)
  • 收藏
  • 关注

原创 unity3d FairyGUI(2)

一坐标系统(1)坐标原点FairyGUI是以屏幕左上角为原点,Unity的屏幕坐标是以左下角为原点,如果需要转换 //Unity的屏幕坐标系,以左下角为原点 Vector2 pos = Input.mousePosition; //转换为FairyGUI的屏幕坐标 pos.y = Screen.height - pos.y;(2)坐标转换1.获取本地坐标点 以及全局坐标和本地坐标之间的转换关系//GObject里的x/y/position值都是局部坐标_back

2022-01-21 17:00:58 2814

原创 unity3d fairygui(1)

官方文档描述点击这里先根据官网一点点学习吧,下载好官方示例一.包体加载和卸载 几种方式//===========下面是Resources目录下==================== //demo就是发布时填写的文件名 UIPackage.AddPackage("demo"); //如果在子目录下 UIPackage.AddPackage("路径/demo"); //如果不放到Resources或者其子目录下,可以传入全路径,但这种方法只能在Editor里使用 UIPackage.A

2022-01-21 15:48:35 2141 1

原创 unity3d Runtime Transform Gizmos 插件使用

如何将插件中的世界轴变为本地轴向1.首先找到抽象类Gizmo 添加一个参数 和一个方法 private bool _localTransform; public bool LocalTransform { get { return _localTransform; } set { _localTransform = value; }

2021-09-26 11:07:59 1905 1

原创 unity3d OpenCVForUnity(二)

静态方法描述Imgproc.findContours轮廓检索方式,是形状分析和对象检测和识别的有用工具,参考 PCAExample示例Imgproc.drawContours绘制轮廓轮廓或填充轮廓,与findContours 合用,参数== contourIdx==:-1为全部绘制,根据contours数量填写,thickness:线条粗细,LineTypes 参数层次结构有关层次结构的可选信息。仅当您只想绘制一些轮廓时才需要它参数 ,maxLevel 绘制轮廓的最大级别。如果...

2021-08-23 16:28:09 1080

原创 unity3d OpenCVForUnity(一)

插件文档描述简单的矩形示例using System.Collections;using System.Collections.Generic;using UnityEngine;using OpenCVForUnity.ImgprocModule;using OpenCVForUnity.ImgcodecsModule;using OpenCVForUnity.CoreModule;using Rect = OpenCVForUnity.CoreModule.Rect;using Ope

2021-08-20 17:22:29 2355

原创 unity3d 装修窗户效果

如果室内装修时想在一个墙面任意开一个窗户定义两个shader 一个是墙体,一个是窗户,通过模板测试来实现第一个墙体shaderTags { “Queue”=“Geometry”} Stencil{ Ref 1 Comp NotEqual Pass Keep }默认值为1,参照值如果与模板缓存值不一样才会通过模板测试 ,如果需要可以加入光照阴影第二个是窗户的shaderTags { “Queue”=“Geometry-1”} 这个是让窗户永远比墙体先

2021-08-18 17:40:18 1071 2

原创 unity3d 相机旋转,移动以及缩放

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.EventSystems;public class CameraFeelpos : MonoBehaviour { //定位旋转点 public Transform target; //偏移量 public float instanceDis_Y = 0; public fl

2021-05-14 11:13:36 1056 6

原创 unity3d Attribute的探索

1.AddComponentMenu 直面解释就是这个脚本能够在Component菜单栏里找到using System.Collections;using System.Collections.Generic;using UnityEngine;[AddComponentMenu("Transform/Follow Transform")]public class Follow : MonoBehaviour{ }2.BeforeRenderOrderAttribute当

2021-04-27 14:11:30 1012 3

原创 unity3d EditorGUILayout基本操作汇总

一.静态方法方法描述BeginBuildTargetSelectionGrouping开始构建目标分组,并取回选定的BuildTargetGroup。(不同平台显示切换)BeginFadeGroup开始一个可以隐藏/显示的组,并将对过渡进行动画处理。BeginFoldoutHeaderGroup使用左侧的折叠箭头制作标签。BeginHorizontal开始一个水平的小组,并得到它的直肠。BeginScrollView开始自动布局的滚动视图。Beg

2021-04-22 10:05:10 1534

原创 Shader Graph 呼吸灯设置

2021-04-09 10:48:36 784

原创 UNITY3D URP与后处理,在game窗口不显示问题

使用volume时,scene窗口可以看到效果,但game窗口没有变化,看看是否camera中rendering里的后处理有没有开启,Universal Render Pipeline(URP)包括其自己的后处理实现,因此您无需安装任何其他软件包,添加Post_process layer等是无效果的,与 post-processing version 2 package不通用...

2021-04-08 19:49:23 6843 4

原创 QGIS 点击插件不正常,无法启动Python

可能系统缺少 api-ms-win-core-path-l1-1-0.dlldll地址放入系统文件,再次启动就正常了

2021-04-08 13:21:29 2580 1

原创 Dotween 动态path设置

public static void Init_DoTweenPath(this Transform this_wife,Vector3[] WayPoints,float Speed,Ease ease= Ease.InOutSine) { //路径点位容器 DG.Tweening.Plugins.Core.PathCore.Path path = new DG.Tweening.Plugins.Core.PathCore.Path(PathType.Linear,

2021-04-02 17:10:39 1022 1

原创 C++ 函数,指针,断言

1.函数(1.)函数主体构造(2.)函数的声明(函数需要先声明再调用)指针必须先初始化指针int a=0; ===> &a (&字符取a当前所在的地址) ===> int*p=&a (定义一个指针p,并初始化,p的地址就是 a所在的地址) ===> *p=3 (修改p里地址里存的内容) 修改p内存指向的内容其实也就是修改a的内容指针的初始化 int *p=new int 以及删除delete p 清除内存*:取指针运算符,根据指

2021-04-01 13:52:16 135

翻译 表达式树 System.Linq.Expressions

一.Expressions命名空间里的类以及作用1.BinaryExpression表示具有二进制运算符的表达式// Create a BinaryExpression that represents subtracting 14 from 53.System.Linq.Expressions.BinaryExpression binaryExpression = System.Linq.Expressions.Expression.MakeBinary( System.Li

2021-04-01 09:54:56 1368

转载 C# Linq详解

LINQ 查询简介TOCLINQ 通过提供处理各种数据源和数据格式的数据的一致模型,简化了这一情况。 在 LINQ 查询中,始终会用到对象。 可以使用相同的基本编码模式来查询和转换 XML 文档、SQL 数据库、ADO.NET 数据集、.NET 集合中的数据以及 LINQ 提供程序可用的任何其他格式的数据。查询操作的三个部分所有 LINQ 查询操作都由以下三个不同的操作组成:获取数据源创建查询执行查询。下面的示例演示如何用源代码表示查询操作的三个部分。 为方便起见,此示例将一个整数数组用作数

2021-03-30 13:04:57 15691 2

原创 unity3d Editor提示窗口以及操作Project文件资源

[PostProcessBuild (100)]public static void OnPostProcessBuild (BuildTarget target, string pathToBuiltProject){ if (EditorUtility.DisplayDialog("窗口title?", "内容提示", "开启button", "取消")) { //Debug.Log("kaiqi"); } else{ ​​​.

2021-03-16 11:52:41 1688

原创 unity3d 用批处理把exe程序写入注册表

开发时如果甲方想在我们的程序中,打开其他的程序,但是我们不知道程序路径,可以用一下配置@echo offif exist xxxx.exe goto setreg:setregecho The Installation Directory is %CD%echo.reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\xxxx.exe" /v myrun /t REG_SZ /d "%CD

2020-09-28 11:59:15 543

原创 unity3d 触发打包事件

using System.Collections;using System.Collections.Generic;using UnityEditor;using UnityEditor.Callbacks;using UnityEngine;using System.IO;public class WindowPos : MonoBehaviour{ [PostProcessBuild(1)] public static void OnPostprocessBuil.

2020-09-28 11:25:55 671 2

原创 Unity3D WebGL手机浏览器警告处理

/// <summary> /// Building的 后处理 /// todo 需要打开这个所在的路径(文件夹) 这个Unity会自动打开 /// </summary> [PostProcessBuild(1)] public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) { Debug.Log(...

2020-09-21 09:55:05 1411

原创 unity3d UMP插件报错 Can‘t load libvlccore library: 126

如果出现以上错误,检查打包目录xxxx_data/Plugins是否与下图目录一样解决办法:打开UMPPostBuilds.cs脚本修改publicstaticvoidBuildWindowsPlayer64(stringpath,UMPSettingssettings)这个方法 public static void BuildWindowsPlayer64(string path, UMPSettings settings) { string bui...

2020-09-18 16:14:42 3911 12

原创 Editor--在Scene窗口使用射线检测

void OnSceneGUI () { Ray ray = HandleUtility.GUIPointToWorldRay(Event.current.mousePosition); RaycastHit hitInfo = new RaycastHit(); if (Physics.Raycast(ray, out hitInfo)) { }}

2020-07-31 17:40:12 544

原创 Unity3d WebGl打包后CameraFlag中DepthOnly显示不正常

如果相机改变为DepthOnly打包后还是会显示背景,把Camera中HDR关闭即可

2020-05-22 09:58:43 483

转载 Expression 核心操作符、表达式、操作方法

https://blog.csdn.net/zhuqinfeng/article/details/70168337C# Expression表达式笔记https://www.cnblogs.com/tiancai/p/5063307.html

2020-04-23 16:00:46 483

原创 Unity3d Graph Maker探索二

日期时间显示在WMG_Axis_Graph脚本添加属性public bool Is_X_AXiesUseYear { get; set; } 第一篇已经有介绍了,用来控制是否启用年月然后添加方法 /// <summary> /// 时间转换 /// </summary> /// <param name="Time"&gt...

2020-03-30 13:54:45 331

原创 unity3d Graph Maker探索一

可以与TextMesh Pro一起使用 Assets---Graph Maker--UGUI==>Tep prefab可改写性很高,下面是我做的简单示例下面是显示多条曲线的文本值,首先在WMG_Axis_Graph脚本添加两个属性 private List<WMG_Change_Obj> changeObjs = new List<WMG_Change_O...

2020-03-27 17:01:17 1055

原创 unity3d SuperCombiner

效果很明显的模型优化插件优化前: 优化后:效果很明显,在需要合并的父物体上添加脚本SuperCombiner如果需要转换为fbx模型,可以使用官方免费查件FbxExporters,但一定先把textr...

2020-03-11 18:03:27 374

原创 unity3d Md5打包与版本更新

AssetBundle打包写入MD5待更新文件using UnityEngine;using UnityEditor;using System.IO;using System.Text;using System.Collections.Generic;using LitJson;public class EditorCreateBundle : Editor{ pub...

2019-07-02 15:44:11 1177 1

原创 Unity与json验证登录Pos请求

IEnumerator GetEnumerator(string url, string accounts,string password) { // Debug.Log(url + " " + accounts + " " + password); string input = "{\"username\":\"" + accou...

2019-06-21 12:01:47 301

原创 Unity3d SuperScrollView超级好用的ScrollView(Super ScrollView for UGUI 2.2)

你不必知道它内部怎么排版,只需要知道你需要多少个实例,实例需要的信息例如我们需要点击查看问题和忽略问题,并且提示数字会变化1.储存信息 定义一个personinfopublic class PersonInfo { public string m_name; public string m_info; public s...

2019-06-20 18:18:14 9238 1

原创 unity3d 返回多物体中心点

public static Vector3 GetCenter(List<Transform> renders, Vector3 center) { Bounds bounds = new Bounds(center, Vector3.zero); foreach (Transform child in renders...

2019-06-19 17:08:34 1949

转载 C++ 引用与指针的异同

详细介绍https://www.cnblogs.com/gxcdream/p/4805612.html引用&:必须初始化,需要一个目标对象,并且一旦绑定就一直跟随这个对象,无法更改.引用作为函数返回值时可以当做左值来使用int a=0;int& test(){return a;}int main(){ test()=123; return 0;}...

2019-04-25 14:28:30 87

原创 Unity3d Chart and Graph插件使用 (2D曲线图,饼图,条形图)

1.基本使用创建Canvas-->菜单栏快速创建Graph2.创建完毕后找到Graph Chart脚本 里data,根据实际情况创建几个曲线3.如果自定义垂直和水平的值,就不要点击Auto, graph = GetComponent<GraphChartBase>(); graph.DataSource.AutomaticVerticall...

2019-04-02 15:54:48 9898 13

转载 设置材质球渲染模式

public enum RenderingMode { Opaque, Cutout, Fade, Transparent, } public static void SetMaterialRenderingMode(Material material, RenderingMode renderingMo...

2019-03-20 10:25:56 506

转载 RGB与十六进制颜色互相转换

输出十进制色值Color nowColor;ColorUtility.TryParseHtmlString("#FECEE1", out nowColor);ColorUtility.ToHtmlStringRGB:传入的是一个Color结构体,返回一个字符串,形式是“FFFFFF”,用法如下:input16Color.text = ColorUtility.ToHtmlStr...

2019-03-20 10:25:09 1669

原创 Unity3d判断当前位置是否在不规则形状里面(PolygonCollider2D)

using UnityEngine.UI;using UnityEngine.EventSystems;public class Test : MonoBehaviour,IPointerClickHandler { private PolygonCollider2D Collider2D; Vector2[] vector; // Use this for ini...

2019-03-13 11:10:36 2463 1

原创 堆与栈基础了解

static void Main(string[] args) { TestStruct test1 = new TestStruct { name = "张三", age = "15" }; TestStruct test2 = test1; test1.name = "赵四"; //打印结果还是张三 说明栈只是克隆了他...

2019-03-12 15:53:40 99

原创 "Serializedobject target has been destroyed. UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)"

void Start () { SceneManager.SetActiveScene(SceneManager.GetSceneAt(1)); SceneManager.activeSceneChanged += SceneManager_activeSceneChanged; } private void SceneManag...

2019-03-04 17:04:46 13500

原创 Embedded Browser WindowsPC内嵌网页

private Browser browser; // Use this for initialization void Start () { browser = GetComponent&lt;Browser&gt;(); //接收网页推送事件, browser.RegisterFunction("showbox", arg...

2019-02-26 11:36:06 2596 5

翻译 unity3d ScrollView 无线滚动列表

新发现github很好的一个ScrollView 无线滚动列表:https://github.com/garsonlab/ScrollViewScale Animation 最好设置为new AnimationCurve(new Keyframe[] {new Keyframe(0,0.5f), new Keyframe(1, 0.5f), new Keyframe(1,0.5...

2019-01-15 16:17:08 1623 6

3D WebView for Android and iOS Web Browser 4.5

v4.5版本

2024-02-05

Poly Few Mesh Simplifier and Auto LOD Generator v7.50

任何 3D 应用程序的性能都高度依赖于 GPU 在 3D 场景中每一帧必须处理的多边形总数。如果你的场景比较复杂,其中包含具有大量网格、使用大量不同材质的高多边形 3D 模型,则游戏的整体性能将会受到影响。Poly Few 是 Unity 的一套完整的优化方案,旨在通过优化高质量的复杂 3D 场景解决这一问题。借助诸如网格简化、自动 LOD 生成、网格合并和材质合并之类的集成功能,只需单击几下即可极大提升游戏性能,一行代码都不需要编写。此类优化技术尤其适用于为资源受到局限的平台开发,如移动手机端或其他低端设备。这也有助于节省美术师的开支。

2021-10-09

crossSection v2.6

切割,刨切shader插件 This is a collection of cross-section shaders, scripts, prefabs and example scenes. It contains the cross-section substitutes for the Unity Standard shader and other built-in shaders in Unity.

2021-09-17

EzChart v2.7.2

EzChart是一个脚本化的GUI包,用于快速构建漂亮的图表。

2021-09-17

Gallery Level Selection - Pagination and Scroll-Snap Menu v1.0.1

Gallery Level Selection是一个非常可定制和完整的分页和滚动菜单包。

2021-09-17

Complete City Pack v1.0

This Beautiful asset pack comes with a complete model pack of a Modern City scene. All models and scene are optimized for using in different mobile platform. Models are lowpoly and having low draw calls.

2021-09-17

Map Track Markers VFX v2.11

指向标,可以作为鼠标点击区域显示,粒子特效,unity3d

2021-09-17

Selection Bases FX v1.0

区域性的粒子特效,unity3d

2021-09-17

Sci-Fi Neon Props Pack 2 v1.0

炫酷的房间内饰

2021-09-17

File Transfer Server.rar

Do you need to transfer files between different devices locally? Now you can do it, and you don't have to install any dedicated server.您是否需要在本地不同的设备之间传输文件? 现在你可以这样做了,而且你不需要安装任何专用服务器。

2021-09-17

ParticlePath v1.1

模拟粒子运动

2021-09-17

Shapes FX Pack v 1.45

2021.1.4更新 炫炫炫 各种排列法线挤出shader

2021-09-17

UMP2.0.2 hls,mp4,rtmp视频流

UMP is universal Media fr amework plugin for Unity that based on Video LAN Important: - Please read user manual before start use UMP; - For possibility to use external/installed VLC libraries you should install the regular VLC player (Unity 64-bit Editor == VLC player 64-bit); - Doesn't support And

2020-09-18

unity图表绘制Graph Maker 1.5.7.zip

很强大的图表插件,可塑性很强,支持dotween,支持TextMesh Pro,,NGui,线图,条形图,堆积的条形图

2020-03-27

Mesh Baker v3.26.0

用于Unity模型网格和材质的合并,对场景进行优化!

2020-03-11

crossSection 1.9.zip 刨切

要求Unity 5.6.0 或更高版本。这些是基于材质着色器的简单横截面工具。它包含了Unity标准着色器和其他内建着色器的横截面替代品。横截面工具可以工作在平面上,单面和多面,圆柱和球体上。提供了在运行时使用GUI或3D gizmo定位剖面的工具,该横剖面在封闭和非交叉网格上工作良好。

2020-03-11

UGUI Super ScrollView 2.2.3.zip

Super ScrollView for UGUI提供基于UGUI ScrollRect的可轻松定制的ScrollView。它是一组C#脚本,可帮助您创建所需的ScrollView。这是非常强大的和高度优化的性能。

2020-03-11

Building BuildR Procedural Generator v1.33

unity3d 快速建筑生成器,可编辑的建筑物BuildR (编辑)或内置的建筑引擎!!!!

2018-12-05

Highlighting System v4.2.1

插件在新版unity中会报错,删除Vr代码即可,Requires Unity 5.5.0 or higher. Highlighting System package allows you to easily integrate outline glow effect for ob jects highlighting in your Unity project. Main features: Works as an Image Effect on Camera Compatible with Forward and Deferred rendering paths, HDR, Gamma and Linear Color Space, GPU Instancing Original renderer materials remains intact (sharedMaterials will remain shared) VR: Compatible with Single Pass (Fast) Stereo Rendering Method Fully compatible with LODGroup component Works with static and skinned meshes

2018-08-30

Highlighting System v4.0

插件在新版unity中会报错,删除Vr代码即可,Requires Unity 5.5.0 or higher. Highlighting System package allows you to easily integrate outline glow effect for ob jects highlighting in your Unity project. Main features: Works as an Image Effect on Camera Compatible with Forward and Deferred rendering paths, HDR, Gamma and Linear Color Space, GPU Instancing Original renderer materials remains intact (sharedMaterials will remain shared) VR: Compatible with Single Pass (Fast) Stereo Rendering Method Fully compatible with LODGroup component Works with static and skinned meshes

2018-08-30

EasyTouch5.0

EasyTouch是在Unity中常会用到的一个插件,我们在手机上玩过的RPG类游戏、和FPS射击类游戏,通过虚拟的摇杆来控制人物移动,和通过按钮做出攻击动画等一系列关于触屏的操作,在Unity完全可以通过EasyTouch插件来很好的实现

2018-08-30

u3d创建本地数据库.db文件

亲测可用,创建完可以在Assets项目目录中查找,可以参考http://www.xuanyusong.com/archives/831

2018-08-30

空空如也

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

TA关注的人

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