kingBook

导航

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

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 阅读(43) 评论(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 阅读(675) 评论(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 阅读(163) 评论(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 阅读(787) 评论(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 阅读(28) 评论(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 阅读(704) 评论(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 阅读(306) 评论(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 阅读(436) 评论(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 阅读(204) 评论(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 阅读(74) 评论(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 阅读(392) 评论(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 阅读(298) 评论(0) 推荐(0) 编辑

2022年3月25日 #

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

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

posted @ 2022-03-25 09:29 kingBook 阅读(151) 评论(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 阅读(120) 评论(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 阅读(2441) 评论(0) 推荐(0) 编辑

2022年3月9日 #

C4D 人形骨骼

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

posted @ 2022-03-09 20:43 kingBook 阅读(36) 评论(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 阅读(108) 评论(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 阅读(1729) 评论(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 阅读(224) 评论(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 阅读(368) 评论(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 阅读(356) 评论(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 阅读(604) 评论(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 阅读(335) 评论(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 阅读(427) 评论(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 阅读(609) 评论(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 阅读(210) 评论(0) 推荐(0) 编辑

URP 编写自定义 Shader (5) 从深度纹理重建像素的世界空间位置

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/writing-shaders-urp-reconstruct-world-position.html // 此 Unity 着色器使用 阅读全文

posted @ 2022-02-14 23:33 kingBook 阅读(505) 评论(0) 推荐(0) 编辑

URP 编写自定义 Shader (4) 法线

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/writing-shaders-urp-unlit-normals.html Shader "Example/URPUnlitShade 阅读全文

posted @ 2022-02-14 23:02 kingBook 阅读(177) 评论(0) 推荐(0) 编辑

URP 编写自定义 Shader (3) 绘制纹理

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/writing-shaders-urp-unlit-texture.html Shader "Example/URPUnlitShade 阅读全文

posted @ 2022-02-14 22:36 kingBook 阅读(255) 评论(0) 推荐(0) 编辑

URP 编写自定义 Shader (2) 带颜色输入的 URPUnlitShader

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/writing-shaders-urp-unlit-color.html Shader "Example/URPUnlitShaderC 阅读全文

posted @ 2022-02-14 21:47 kingBook 阅读(183) 评论(0) 推荐(0) 编辑

URP 编写自定义 Shader (1) URPUnlitShaderBasic

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/writing-shaders-urp-basic-unlit-structure.html Shader "Example/URPUn 阅读全文

posted @ 2022-02-14 20:22 kingBook 阅读(139) 评论(0) 推荐(0) 编辑

URP 文档

摘要: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@13.1/manual/index.html https://docs.unity3d.com/cn/Packages/com.unity.render-pi 阅读全文

posted @ 2022-02-14 19:57 kingBook 阅读(100) 评论(0) 推荐(0) 编辑

Cinemachine 文档

摘要: https://docs.unity.cn/Packages/com.unity.cinemachine@2.8/manual/index.html 阅读全文

posted @ 2022-02-14 19:55 kingBook 阅读(63) 评论(0) 推荐(0) 编辑

2022年1月27日 #

Unity ExecuteEvents 消息系统

摘要: 更多说明: https://docs.unity.cn/cn/current/Manual/MessagingSystem.html 例:假设现在有一辆车(Car)进入停车位(ParkingSpace),在停车位这个类里已经写好车是否进入的逻辑,然后想把车已进入这个消息告诉车,为了实现松散耦合,可以 阅读全文

posted @ 2022-01-27 14:22 kingBook 阅读(164) 评论(0) 推荐(0) 编辑

2022年1月25日 #

Win10 禁用某些Win组合快捷键

摘要: 例:禁用 Win+1\2\3\4\5\6\7\8\9\0\Q 快捷键. 运行以下的 .reg,修改注册表 DisabledHotkeys.reg Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Wi 阅读全文

posted @ 2022-01-25 20:21 kingBook 阅读(343) 评论(0) 推荐(0) 编辑

2022年1月18日 #

unity 远程音频

摘要: using System.Collections; using System.Collections.Generic; using UnityEditor.SceneManagement; using UnityEngine; using UnityEngine.Networking; public 阅读全文

posted @ 2022-01-18 23:03 kingBook 阅读(74) 评论(0) 推荐(0) 编辑

2022年1月14日 #

git rm

摘要: 假设有一个项目,项目中的所有文件夹都暂存并已提交,但想在下一次提交时忽略某个文件夹,于是想到在 .gitignore里把文件夹名称填上,如: "Library/",然后每次 git status的时候,它依然会显示 Library 下的被更改的文件列表。此时需要执行: git rm -r --cac 阅读全文

posted @ 2022-01-14 14:11 kingBook 阅读(29) 评论(0) 推荐(0) 编辑

2022年1月11日 #

Unity 重命名一个字段,同时不丢失其序列化的值

摘要: FormerlySerializedAs: 参数: oldName: 执行重命名操作之前字段的名称。 假设您有如下所示的类: using UnityEngine; public class MyMonster : MonoBehaviour { public int hitpoints; } 现在想 阅读全文

posted @ 2022-01-11 10:30 kingBook 阅读(128) 评论(0) 推荐(0) 编辑

2021年12月25日 #

VS2019,Unity 默认行尾

摘要: Unix平台: LF Windows平台: CRLF 为了与 MAC 电脑统一,全部采用 LF 行尾 在 VS2019 中设置保存时的默认行尾,需要安装 Line Endings Unifier 插件。 扩展 -> 管理扩展,搜索并安装 Line Endings Unifier 插件,重启 VS20 阅读全文

posted @ 2021-12-25 19:17 kingBook 阅读(336) 评论(0) 推荐(0) 编辑

2021年12月23日 #

C4D

摘要: 帮助文档地址: https://help.maxon.net/ 展UV: https://zhuanlan.zhihu.com/p/101171420 绑骨骼: https://www.bilibili.com/read/cv6041256/ https://zhuanlan.zhihu.com/p 阅读全文

posted @ 2021-12-23 23:29 kingBook 阅读(48) 评论(0) 推荐(0) 编辑

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