关系图 红色菱形:脚本 移动代码 1 //移动代码 2 public CharacterController controller;//角色控制器 3 public float speed = 12f;//移动速度 4 public float gravity = -20f;//重力加速度 5 pu ...
分类:
编程语言 时间:
2020-07-12 20:35:12
阅读次数:
88
效果图 代码 [MenuItem("Custom/Run _F1")] static void PlayToggle() { EditorApplication.isPlaying = !EditorApplication.isPlaying; } static MethodInfo clearMe ...
分类:
编程语言 时间:
2020-07-12 14:22:45
阅读次数:
71
protobuf 是一种数据交换格式,类似json。 grpc 是一种服务调用协议。 golang 需要下载安装 protoc 二进制文件支持编译 下载地址 编译protobuf协议需要安装github.com/golang/protobuf包进行编译支持 支持grpc需要安装go install ...
分类:
其他好文 时间:
2020-07-11 17:42:09
阅读次数:
51
在unity中我们可以通过shader来实现各种有意思而且炫酷的一些渲染效果出来。比如流光效果,毛玻璃效果,平静水面,波涛汹涌的海面,甚至是一些炫酷的技能特效等。主要就是因为unity为我们渲染准备了一个shaderlab的结构,我们可以很方便的在这个模块下面进行开发,写上我们自己的CG代码,渲染算 ...
分类:
编程语言 时间:
2020-07-10 11:41:55
阅读次数:
79
UNITY_灯光与渲染 课程大纲: Custom Skybox Lights; Color Space Global Illumination -- realtime/ baked Light probes Emissive lighting Reflection probes PostProces ...
分类:
编程语言 时间:
2020-07-10 00:32:19
阅读次数:
146
本文主要介绍 Unity 导出 Android 工程,在 Android Studio 中作为库继续开发的开发模式 ...
分类:
移动开发 时间:
2020-07-09 15:31:04
阅读次数:
104
Raycast 射线检测 Unity 中提供了一种控制方案,用来检测鼠标点在屏幕上后,具体点在 Unity 场景中,三维世界的哪个点上。 这种解决方案,就是射线检测: 通过鼠标点击屏幕,由屏幕上的点向Unity三维直接发射一条无限长的射线, 当检测到碰撞物体后,便会返回被碰撞物体的所有信息,以及交点 ...
分类:
编程语言 时间:
2020-07-09 10:38:53
阅读次数:
114
原贴: SRP Batcher not working on Android for custom shader with URP 题主stephero问道: 自己写了一个最简单的着色器, Shader "Hidden/SimpleSRPTest" { Properties { } SubShade ...
分类:
移动开发 时间:
2020-07-09 09:16:22
阅读次数:
87
废话不多说,直接上代码 —— 将下面的代码赋给所需要控制的物体上即可。 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseControlModel : Mo ...
分类:
编程语言 时间:
2020-07-07 17:35:12
阅读次数:
67
根据UnityBlog的介绍,Crunch压缩能实现更高的压缩率和更少的压缩时间。 ...
分类:
编程语言 时间:
2020-07-06 20:16:01
阅读次数:
122