编辑Mesh顶点坐标

作者:追风剑情 发布于:2019-5-28 13:55 分类:Unity3d

场景截图 using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteInEditMode] [RequireComponent(typeof(MeshFilter))] public class MeshVertexEditor :...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4187)

禁止屏幕睡眠

作者:追风剑情 发布于:2019-5-28 10:42 分类:Unity3d

private void Awake() { //防止屏幕变暗 Screen.sleepTimeout = SleepTimeout.NeverSleep; //用系统设置 //Screen.sleepTimeout = SleepTimeout.SystemSetting; }

阅读全文>>

标签: Unity3d

评论(0) 浏览(2837)

yield return

作者:追风剑情 发布于:2019-5-28 10:31 分类:Unity3d

using System.Collections; using System.Collections.Generic; using UnityEngine; public class WaitTest : MonoBehaviour { public int frame; void Start () { StartCoroutine(Wait...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2650)

UnityEngine.UI.VertexHelper

作者:追风剑情 发布于:2019-5-27 17:31 分类:Unity3d

示例:自定义UI几何图形 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class VertexHelperTest : MonoBehaviour { public MeshFilter me...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3774)

UnityEngine.Event

作者:追风剑情 发布于:2019-5-27 13:18 分类:Unity3d

监听键盘按键 private void OnGUI() { Event e = Event.current; if (e != null && e.isKey) { // Esc键 if (e.keyCode == KeyCode.Escape) { Application.Quit(); } } }

阅读全文>>

标签: Unity3d

评论(0) 浏览(11763)

物体沿贝塞尔曲线运动

作者:追风剑情 发布于:2019-5-23 21:45 分类:Unity3d

一、新建场景,如图 TrackDraw.cs using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 在场景中显示轨迹 /// [ExecuteInEditMode]...

阅读全文>>

标签: Unity3d

评论(0) 浏览(3824)

激活Windows 10

作者:追风剑情 发布于:2019-5-13 13:50 分类:其他

参考 https://baijiahao.baidu.com/s?id=1620924952478049508&wfr=spider&for=pc 在CMD中依次输入下面命令

阅读全文>>

评论(0) 浏览(3865)

利用BlendShape制作变形动画

作者:追风剑情 发布于:2019-5-10 21:37 分类:Unity3d

一、在Maya中利用混合变形器创建BlendShape 1、创建一个几何体,并复制一份 2、选中两个几何体(即,变形体和目标物体),并打开【创建混合变形选项】面板。 观察右侧属性编辑器 3、选中目标物体,导出为FBX文件,并导入到Unity工程中。 4、改变change.pCone1...

阅读全文>>

标签: Unity3d

评论(0) 浏览(4485)

UnityEngine.Video.VideoPlayer

作者:追风剑情 发布于:2019-5-7 21:59 分类:Unity3d

官方文档 https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html https://docs.unity3d.com/Manual/class-VideoClip.html 示例:在Plane上播放电影 导入一个电影文件,新建一个材质,新建一个RenderTexture。如图 ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5251)

EditorGUILayout.Toggle()

作者:追风剑情 发布于:2019-5-7 11:47 分类:Unity3d

示例 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class GUIStyleWindow : EditorWindow { private bool group = true; priva...

阅读全文>>

标签: Unity3d

评论(0) 浏览(7208)

手动为角色绑定IK动画

作者:追风剑情 发布于:2019-5-6 20:43 分类:Unity3d

[官方文档] 反向动力学 可在 Mecanim 中用于已正确配置的任何人形Avatar骨骼。 一、导入角色模型,并进行设置 二、创建两个空对象IK_LeftHand、IK_RightHand用来对左右手部进行定位。 三、创建AnimatorController并创建一个空动画 启用IK Pa...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2765)

ConditionalAttribute

作者:追风剑情 发布于:2019-5-6 18:13 分类:C#

示例:除非定义了相应的宏,否则忽略方法调用 #define TOOL_B using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp1 { class Pr...

阅读全文>>

标签: C#

评论(0) 浏览(2275)

摄像机震动效果

作者:追风剑情 发布于:2019-5-5 20:12 分类:Unity3d

示例 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraShake : MonoBehaviour { private Transform ThisTransform = null; public float...

阅读全文>>

标签: Unity3d

评论(0) 浏览(2883)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号