kingBook

导航

上一页 1 2 3 4 5 6 ··· 13 下一页

2022年12月28日 #

URP 空间转换

摘要: $\begin{Bmatrix}模型空间(model\ space) \对象空间(object\ space) \局部空间(local\ space) \end{Bmatrix} \underbrace{\Rightarrow }{模型变换} \begin{Bmatrix}世界空间(world\ s 阅读全文

posted @ 2022-12-28 22:26 kingBook 阅读(686) 评论(0) 推荐(2)

2022年9月21日 #

Win10 OneNote 一直卡的登录界面

摘要: Internet选项 -> 高级,勾选使用 SSL 3.0 阅读全文

posted @ 2022-09-21 10:19 kingBook 阅读(89) 评论(0) 推荐(0)

2022年9月16日 #

mul()函数

摘要: https://blog.csdn.net/Ling_SevoL_Y/article/details/120206679 | 函数 | 说明 | | | | | mul(M,N) | 计算两个矩阵相乘,如果 M 为 AxB 阶矩阵,N 为 BxC 阶矩阵,则返回 AxC 阶矩阵。下面两个函数为其重载 阅读全文

posted @ 2022-09-16 14:39 kingBook 阅读(225) 评论(0) 推荐(0)

2022年9月5日 #

Unity 导入人形骨骼模型及动画

摘要: 例:当导入名称为 Women 的模型,这一般分为两个部分: 包含有蒙皮网格(SkinnedMeshRenderer)和骨骼的 Women.fbx 主要导入设置: Rig -> AnimationType : Humanoid Animation -> Import Animation: false 阅读全文

posted @ 2022-09-05 21:05 kingBook 阅读(301) 评论(0) 推荐(0)

2022年8月26日 #

UnityEditor Undo

摘要: 最重要的几项操作如下所述: 修改单个属性: Undo.RecordObject (myGameObject.transform, "Zero Transform Position"); myGameObject.transform.position = Vector3.zero; 添加组件: Und 阅读全文

posted @ 2022-08-26 14:00 kingBook 阅读(86) 评论(0) 推荐(0)

UnityEditor 查找和获取内置资源

摘要: Object[] UnityAssets = AssetDatabase.LoadAllAssetsAtPath("Resources/unity_builtin_extra"); foreach (var asset in UnityAssets) { Debug.Log(asset); } De 阅读全文

posted @ 2022-08-26 12:22 kingBook 阅读(237) 评论(0) 推荐(0)

2022年8月23日 #

UnityEditor 获取FileID/LocalIdentfierInFile

摘要: private static int GetLocalIdentfierInFile(UnityEngine.Object obj) { PropertyInfo info = typeof(SerializedObject).GetProperty("inspectorMode", Binding 阅读全文

posted @ 2022-08-23 17:46 kingBook 阅读(356) 评论(0) 推荐(0)

2022年8月17日 #

网格数据

摘要: 设有以下一维网格数据 // sbyte:8 位带符号整数,取值范围[-128,127] sbyte[] gridData=new sbyte[]{ 0,1,2, 3,4,5, 6,7,8 }; col: 列数(竖向有几列,一般用于表示 x) | | | | | | | | | | | | row:行 阅读全文

posted @ 2022-08-17 16:58 kingBook 阅读(115) 评论(0) 推荐(0)

2022年7月17日 #

Unity Editor 使文本输入框失去焦点

摘要: GUIUtility.keyboardControl = 0; 阅读全文

posted @ 2022-07-17 17:44 kingBook 阅读(162) 评论(0) 推荐(0)

Unity Editor 复制内容到剪切板

摘要: string str="acd12335"; TextEditor textEditor = new TextEditor(); textEditor.text = str; textEditor.SelectAll(); textEditor.Copy(); 阅读全文

posted @ 2022-07-17 16:50 kingBook 阅读(143) 评论(0) 推荐(0)

2022年6月28日 #

Unity 在编辑器中输入字符串时,转义字符的输入

摘要: 当使用如下代码,然后在 Unity 编辑器中输入 "Time Out\n Fail",当在代码中读取时并不能读取到换行符"\n",而是读取到加转义符后的"\\n" using UnityEngine; public class TestText : MonoBehaviour { [Serializ 阅读全文

posted @ 2022-06-28 17:09 kingBook 阅读(552) 评论(0) 推荐(0)

2022年6月23日 #

Unity VideoPlayer使用url方式,Android平台下无法播放http链接的视频(黑屏、无反应、无报错、无log输出)

摘要: 以下内容基于 Unity 2019.4.28f1c1,未来可能有变化 (以下 Other Settings 供参考,未必影响) Edit → Project Settings → Player → Android平台 → Other Settings :设置如下 Rendering Auto Gra 阅读全文

posted @ 2022-06-23 17:25 kingBook 阅读(1078) 评论(0) 推荐(0)

2022年6月19日 #

UnityEditor 编辑器脚本执行菜单

摘要: 例:执行 Edit/Duplicate 菜单 [MenuItem("Tools/Duplicate")] private static void ExecuteDuplicate() { bool isExecute = EditorApplication.ExecuteMenuItem("Edit 阅读全文

posted @ 2022-06-19 18:09 kingBook 阅读(127) 评论(0) 推荐(0)

2022年6月10日 #

Unity 检测对象是否在相机的视锥体范围内

摘要: TestInCamera.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using Stopwatch = System.Diagnostics.Stopwatch; [Requir 阅读全文

posted @ 2022-06-10 16:32 kingBook 阅读(274) 评论(0) 推荐(0)

2022年5月30日 #

Win 将资源管理器固定在任务栏后,右键时卡死

摘要: 删除注册表项:HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Library Location FixContextMenu.reg Windows Registry Editor Version 5.00 [-HKEY_CLASSES_RO 阅读全文

posted @ 2022-05-30 20:03 kingBook 阅读(63) 评论(0) 推荐(0)

2022年5月24日 #

unity URP 灯光烘焙记录

摘要: Mesh 需要焙焙的模型网格,勾选 Contribute GI、BatchingStatic Light: Directional Light: 一般用于主灯光,模式为 Realtime Spot Light: 模式为 Mixed, 开启阴影 Point Light:模式为 Mixed, 开启阴影( 阅读全文

posted @ 2022-05-24 16:20 kingBook 阅读(773) 评论(0) 推荐(0)

2022年5月21日 #

3.3 三角函数的积化和差与和差化积

摘要: ![image](https://img2022.cnblogs.com/blog/714380/202205/714380-20220521123433722-1000145496.png) 阅读全文

posted @ 2022-05-21 12:35 kingBook 阅读(226) 评论(0) 推荐(0)

2022年5月19日 #

git 查找大文件、删除大文件

摘要: 1. git add -A 2. git commit -m "xxx" 3. git gc 4. 查找大文件,"tail -20"中的20表示条数 git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack 阅读全文

posted @ 2022-05-19 09:40 kingBook 阅读(1135) 评论(0) 推荐(0)

2022年5月16日 #

第三章 三角恒等变换

摘要: 两角和与差的正弦、余弦、正切公式: \(\cos (\alpha \pm \beta ) = \cos a\cos \beta \mp\sin \alpha \sin \beta\) \(\sin (\alpha \pm \beta ) = \sin \alpha \cos \beta \pm \c 阅读全文

posted @ 2022-05-16 21:00 kingBook 阅读(31) 评论(0) 推荐(0)

1.3 三角函数的诱导公式

摘要: https://baike.baidu.com/item/%E4%B8%89%E8%A7%92%E5%87%BD%E6%95%B0%E5%85%AC%E5%BC%8F/4374733 公式二 $\sin (\pi+\alpha ) = -\sin a$ $\cos (\pi+a) = -\cos a 阅读全文

posted @ 2022-05-16 20:44 kingBook 阅读(794) 评论(0) 推荐(0)

1.2.2 同角三角函数的基本关系

摘要: \(\sin^{2}\alpha + \cos^{2}\alpha = 1\) \(\frac{\sin a}{\cos a} = \tan a\) 阅读全文

posted @ 2022-05-16 20:27 kingBook 阅读(401) 评论(0) 推荐(0)

2022年5月13日 #

git format-patch/diff

摘要: Git 提供了两种补丁方案: 一是用git diff生成的UNIX标准补丁.diff文件,二是git format-patch生成的Git专用.patch 文件。 .diff文件: 只记录文件更改的内容,不带有commit记录信息,多个commit可以合并成一个diff文件。 .patch文件: 带 阅读全文

posted @ 2022-05-13 11:38 kingBook 阅读(624) 评论(0) 推荐(0)

2022年5月6日 #

Unity 当使用 Instantiate() 创建实例时,在参数里定义父级与实例化后再设置父级的区别

摘要: 设有: prefab:预制件, 默认的位置在(10,10,10)。 parent:在场景中的游戏对象,位置在(20,20,20)。 例1. 在参数里定义父级,会将实例直接旋转到父级,此时实例在父级内的局部坐标为(10,10,10),实例的世界坐标为(30,30,30) var inst = Inst 阅读全文

posted @ 2022-05-06 17:34 kingBook 阅读(281) 评论(0) 推荐(0)

2022年4月22日 #

Cinemachine Collider

摘要: https://blog.csdn.net/wangjiangrong/article/details/108999736 Cinemachine Collider是Cinemachine虚拟相机的扩展。它对虚拟相机的最终位置进行后期处理,以试图保持虚拟相机的LookAt目标的视线。它通过远离阻挡视 阅读全文

posted @ 2022-04-22 12:11 kingBook 阅读(89) 评论(0) 推荐(0)

2022年4月20日 #

Unity Editor Hierarchy下拉菜单扩展

摘要: TestHierarchyPopupMenuEditor.cs using UnityEditor; using UnityEngine; public class TestHierarchyPopupMenuEditor : ScriptableObject { [MenuItem("GameOb 阅读全文

posted @ 2022-04-20 17:45 kingBook 阅读(451) 评论(0) 推荐(0)

2022年4月9日 #

Unity Rigidbody.AddForce 的 ForceMode

摘要: 举例中均设刚体质量为 m=2.0f,力向量为 f=(10.0f,0.0f,0.0f)。 功能注解:ForceMode为枚举类型,用来控制力的作用方式,有4个枚举成员,在以下举例中均设刚体质量为m=2.0f,力向量为f=(10.0f,0.0f,0.0f)。 1)ForceMode.Force:默认方式 阅读全文

posted @ 2022-04-09 14:46 kingBook 阅读(344) 评论(0) 推荐(0)

2022年3月25日 #

Unity 帧序列图转粒子系统特效

摘要: 如果使用 Flash 导出系列图表,需要保存表中无空白 阅读全文

posted @ 2022-03-25 09:29 kingBook 阅读(193) 评论(0) 推荐(0)

2022年3月24日 #

C# 值类型

摘要: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/builtin-types/value-types 值类型的变量包含类型的实例。 它不同于引用类型的变量,后者包含对类型实例的引用。 默认情况下,在分配中,通过将实参传 阅读全文

posted @ 2022-03-24 10:42 kingBook 阅读(126) 评论(0) 推荐(0)

C# 定义宏

摘要: #define ENABLE_TEST // 必须在 using 的上方定义 using System.Collections; using UnityEngine; public class TestDefine : MonoBehaviour { void Start () { #if ENAB 阅读全文

posted @ 2022-03-24 09:23 kingBook 阅读(2497) 评论(0) 推荐(0)

2022年3月9日 #

C4D 人形骨骼

摘要: spine:脊柱 |-arm:手臂 |-scapula:肩胛骨 |-hand:手 |-thumb:拇指 |-finger:手指 |-leg:腿 |-Toes:脚趾 |-jaw:颌;下巴;下颌; |-eye:眼 阅读全文

posted @ 2022-03-09 20:43 kingBook 阅读(52) 评论(0) 推荐(0)

2022年3月4日 #

Unity 光照贴图设置文档

摘要: Lighting 窗口 https://docs.unity3d.com/cn/2019.4/Manual/lighting-window.html Lighting Mode: Baked Indirect https://docs.unity3d.com/cn/2019.4/Manual/Lig 阅读全文

posted @ 2022-03-04 09:34 kingBook 阅读(121) 评论(0) 推荐(0)

2022年3月2日 #

C4D R25 UV的展开与导出

摘要: 展开 UV: 创建一个立方体,并转换为可编辑对象(C)。 点击上方的 UV Edit 切换到 UV 编辑布局。 切换到边模式,选择边如下: 切换到多边形模式,全选(Ctrl+A)。 重置 UV,在编辑器中间的按钮列表点击 ResetUV(或在下方 UV Commands 选项卡里点击也一样)。 展开 阅读全文

posted @ 2022-03-02 22:39 kingBook 阅读(2227) 评论(0) 推荐(0)

2022年2月26日 #

UnityEditor 实现如 BoxCollider 的编辑功能

摘要: CastShapeBase.cs using System.Collections; using UnityEngine; public abstract class CastShapeBase : MonoBehaviour { #if UNITY_EDITOR protected readonl 阅读全文

posted @ 2022-02-26 16:54 kingBook 阅读(275) 评论(0) 推荐(0)

2022年2月23日 #

CinemachinePath

摘要: CinemachinePathBase: public float FindClosestPoint (Vector3 p, int startSegment, int searchRadius, int stepsPerSegment); (en) 找到路径上距离目标点(世界坐标系)最近的点。 p 阅读全文

posted @ 2022-02-23 17:49 kingBook 阅读(414) 评论(0) 推荐(0)

2022年2月21日 #

Unity Editor 控制检视面板的属性是否显示和绘制只读属性

摘要: TestInspectorPropertyVisible.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestInspectorPropertyVisib 阅读全文

posted @ 2022-02-21 22:02 kingBook 阅读(437) 评论(0) 推荐(0)

UnityEditor 编辑器扩展 ReorderableList 可排序列表

摘要: TestReorderableList.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestReorderableList : MonoBehaviour 阅读全文

posted @ 2022-02-21 20:45 kingBook 阅读(672) 评论(0) 推荐(0)

2022年2月17日 #

UGUI RectTransformUtility

摘要: RectTransformUtility: public static Bounds CalculateRelativeRectTransformBounds (Transform root, Transform child); public static Bounds CalculateRelat 阅读全文

posted @ 2022-02-17 23:18 kingBook 阅读(387) 评论(0) 推荐(0)

2022年2月15日 #

Unity 创建和编辑地形

摘要: GameObject > 3D Object > Terrain Terrain Inspector 具有以下键盘快捷键: 按 F1 选择 Paint Terrain。 按 F2 选择 Paint Trees。 按 F3 选择 Paint Details。 按 F4 选择 Terrain Setti 阅读全文

posted @ 2022-02-15 21:35 kingBook 阅读(532) 评论(0) 推荐(0)

UnityEditor 代码创建与编辑预制件

摘要: 在编辑器模式下创建预制件 #if UNITY_EDITOR using UnityEditor; using UnityEngine; public class EditorTest : Editor { [MenuItem("Tools/EditorTest", true)] private st 阅读全文

posted @ 2022-02-15 16:14 kingBook 阅读(690) 评论(0) 推荐(0)

2022年2月14日 #

URP 编写自定义 Shader (6) URP ShaderLab Pass tags

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/urp-shaders/urp-shaderlab-pass-tags.html Property Description Univer 阅读全文

posted @ 2022-02-14 23:39 kingBook 阅读(249) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 13 下一页