自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (2)
  • 收藏
  • 关注

原创 Unity VR成像原理

偏振式3D成像原理:偏振式3D成像是根据人眼成像原理发明的,人眼看到的景象呈现立体感,是由于双眼所观察到的景象有略微的差别,因为瞳距(两眼球之间的距离)导致观察的物体的角度不同。所谓偏振成像就是将两幅不同偏振态的图像送到双眼,每只眼睛只允许看到其中一幅,我们用unity制作3D游戏,其实就是制作这两幅图像。或者说模拟3D信号。Unity模拟3D偏振式3D成像原理 :1 把场景本来存在的主相机删掉,把创建的两个摄像机放在同一平面,分开很小的距离( 0.06距离),角度调成一样。2.unity..

2021-03-03 14:25:59 1382

原创 2020-11-26 Unity控制UI在Heirachy面板的顺序

Unity控制Transform的层级顺序的APItransform.GetSiblingIndex() 获取当前索引SetAsLastSibling():设置为最下层级(最先渲染)SetSiblingIndex(int index):设置层级

2020-11-26 10:19:20 289

原创 UnityRectTranform属性设置方法

1.改变RectTransform的topGetComponent<RectTransform>().offsetMax = new Vector2(GetComponent<RectTransform>().offsetMax.x, top);2.改变RectTransform的bottomGetComponent<RectTransform>().offsetMin = new Vector2(GetComponent<RectTransfor.

2020-09-28 10:41:39 719

原创 Unity 单例类模板

using UnityEngine;public abstract class SingletonMono<T> : MonoBehaviour where T : SingletonMono<T>{ private static T instance = null; public static T Instance { get { if (instance == null) ...

2020-07-14 15:27:05 263

原创 Unity两点之间生成一条直线

private void GetBetweenPoint(Transform target, Vector3 start,Vector3 end,float percent=1f) { Vector3 normal = (end - start).normalized; float distance = Vector3.Distance(start, end); target.position= normal * (distance...

2020-06-15 12:02:24 3416 1

原创 Unity检测当前环境是Windows还是

public static bool IsLinux { get { int p = (int)Environment.OSVersion.Platform; return (p == 4) || (p == 6) || (p == 128); } }使用:IsLinux ?"Windows" : "Linux";...

2020-05-09 10:31:07 1471

原创 Unity开发WebGl总结

一、问题1、不支持IP套接字2、PlayerSettings的Rendering—》ColoSpace只支持Gamma3、PlayerSettings的PublishingSettings的—》Compression Format的压缩问题: gzip:这是默认选项。gzip文件大于Brotli文件,但构建速度更快,并且所有浏览器均通过http和https对其进行本地支持。 ...

2020-04-01 16:32:05 583

Demigiant.rar

物体移动旋转插件,使用动画效果好。

2020-06-23

unity模型Multi-Sport Stadium 1.0.zip

Unity体育馆模型简模,适合移动Web等性能低的平台使用。

2020-05-09

空空如也

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

TA关注的人

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