kingBook

导航

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

2021年7月1日 #

Phtoshop 无缝连续贴图制作

摘要: 1.保证的图片素材“长:宽”比例为“1:1”。 2.菜单:“滤镜”--“其他”--“位移”, 3.设置“水平”、“垂直”为图像大小的一半,“未定义区域”选择**“折回”**选项 4.再使用修复画笔或仿制图章工具,修复中间的接缝。 阅读全文

posted @ 2021-07-01 11:25 kingBook 阅读(163) 评论(0) 推荐(0)

2021年6月30日 #

Unity 冰材质 Shader

摘要: Shader "Custom/Ice" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("BaseTex ", 2D) = "white" {} _BumpMap ("Normalmap", 2D) = "bump" 阅读全文

posted @ 2021-06-30 16:04 kingBook 阅读(566) 评论(0) 推荐(0)

2021年6月29日 #

博客园代码样式修改

摘要: 下载 样式预览:https://highlightjs.org/static/demo/ 样式下载:https://files.cnblogs.com/files/-Tiger/highlight.zip 或者在其官网下载也可以:https://highlightjs.org/download/ 修 阅读全文

posted @ 2021-06-29 17:20 kingBook 阅读(71) 评论(0) 推荐(0)

Unity 拓展 Inspector 视图组件下拉菜单与及 HideInInspector 属性的使用

摘要: 在场景中有两个对象, 分别添加了以下的 Cube 和 TestHideInInspector 脚本,然后在 Unity 编辑器中把有 Cube 脚本的对象拖动到另一个对象的 TestHideInInspector 脚本组件的 cubePrefab 属性。 此示例中,Cube 只有一个属性 m_id, 阅读全文

posted @ 2021-06-29 16:55 kingBook 阅读(1442) 评论(0) 推荐(0)

2021年6月28日 #

Unity ContextMenu 扩展组件的环境菜单(在 Inspector 视图组件名称上的右击下拉菜单)

摘要: public class EndArea : MonoBehaviour { #if UNITY_EDITOR [ContextMenu("Generate")] private void Generate () { Debug.Log("Generate"); } #endif } 扩展内置组件的 阅读全文

posted @ 2021-06-28 09:41 kingBook 阅读(747) 评论(0) 推荐(0)

2021年6月25日 #

Unity InitializeOnLoadMethod 与 RuntimeInitializeOnLoadMethod

摘要: #if UNITY_EDITOR using UnityEditor; using UnityEngine; public class TestEditorLoadMethod: Editor { // 第一次打开 Unity 编辑器运行一次,之后每次进入 Play 模式都运行一次 [Initial 阅读全文

posted @ 2021-06-25 16:03 kingBook 阅读(1214) 评论(0) 推荐(0)

2021年6月23日 #

Unity Recorder

摘要: Unity Recorder 阅读全文

posted @ 2021-06-23 15:58 kingBook 阅读(77) 评论(0) 推荐(0)

Cinemachine

摘要: 5分钟入门Cinemachine智能相机系统 VirtualCamera虚拟相机详解(一) VirtualCamera(二):Body属性 【Cinemachine智能相机教程】VirtualCamera(三):Aim属性 【Cinemachine智能相机教程】VirtualCamera(四):No 阅读全文

posted @ 2021-06-23 15:43 kingBook 阅读(121) 评论(0) 推荐(0)

2021年6月9日 #

Blender Note

摘要: 各种插件下载: http://www.gfxcamp.com/category/plug-ins/blender%e6%8f%92%e4%bb%b6/ https://v.qq.com/x/page/z0850y0l0l0.html 眨眼 https://www.bilibili.com/video 阅读全文

posted @ 2021-06-09 20:14 kingBook 阅读(28) 评论(0) 推荐(0)

2021年6月4日 #

Unity 关于导弹抛物运动

摘要: https://github.com/vilbeyli/TrajectoryTutorial/ * https://vilbeyli.github.io/Projectile-Motion-Tutorial-for-Arrows-and-Missiles-in-Unity3D/ https://de 阅读全文

posted @ 2021-06-04 10:42 kingBook 阅读(164) 评论(0) 推荐(0)

2021年5月19日 #

一元二次方程

摘要: 一般形式:\(ax²+bx+c=0(a≠0)\) 根的判别式: \(\varDelta=b^2-4ac\) ①当$\varDelta>0$时,方程有两个不相等的实数根; ②当$\varDelta=0$时,方程有两个相等的实数根; ③当$\varDelta<0$时,方程无实数根,但有2个共轭复根。 求 阅读全文

posted @ 2021-05-19 21:56 kingBook 阅读(1074) 评论(0) 推荐(0)

2021年5月13日 #

shader 案例

摘要: 用UV动画实现沙滩上的泡沫:https://www.bbsmax.com/A/8Bz8v8n15x/ Unity 透明材质 Shader:https://zhuanlan.zhihu.com/p/350406303 实作屏幕扭曲效果:https://zhuanlan.zhihu.com/p/8623 阅读全文

posted @ 2021-05-13 10:05 kingBook 阅读(110) 评论(0) 推荐(0)

2021年4月29日 #

线段与圆是否相交

摘要: 如图A所示,当圆心与线段的距离大于圆的半径时,线段与圆肯定不相交 如图B,C所示,两个端点都不在圆内,那么看圆心到线段所在直线的垂足是否小于半径且垂足是否在线段上;我们可以利用余弦定理,避免判断垂足是否在线段上,只要圆心到两端点的得角度都为锐角,那么他们必然相交。 https://www.cnblo 阅读全文

posted @ 2021-04-29 12:07 kingBook 阅读(1169) 评论(0) 推荐(0)

2021年4月7日 #

Unity GameObject.Find 应注意的问题

摘要: public static GameObject Find (string name); 假设现在有游戏对象 Ball ,在场景的层次结构为: Level/Content/Ball。 在编辑器里设置 Ball 为不激活,此时 GameObject.Find("Ball"); // null 找不到对 阅读全文

posted @ 2021-04-07 10:50 kingBook 阅读(221) 评论(0) 推荐(0)

2021年4月1日 #

Unity 旋转欧拉角X时,重力加速度模拟

摘要: 如图,要求角色捉住杆不停旋转,当旋转至脚朝上时,受到重力速度要求逐渐减速旋转,反之加速旋转。 // 125f 为没有重力时旋转速度 float angleVelocity=125f; // 加重力 // ((transform.up.y+1f)/2f) 范围区间[0,1]脚朝上最小,脚朝下最大; / 阅读全文

posted @ 2021-04-01 16:21 kingBook 阅读(225) 评论(0) 推荐(0)

2021年3月16日 #

Git 使用git-lfs时pull或reset后文件内容不正确

摘要: 使用git-lfs时pull或reset后文件内容如下: version https://git-lfs.github.com/spec/v1 oid sha256:xxxxxxxxxxxxxxxxxxxxxx size xxxxxxxxxx 使用以下命令恢复: git lfs pull origi 阅读全文

posted @ 2021-03-16 10:33 kingBook 阅读(1325) 评论(0) 推荐(0)

2021年2月22日 #

unity 凸包算法

摘要: https://www.pianshen.com/article/763090525/ https://blog.csdn.net/qq_29242649/article/details/105772034 一: using System.Collections; using System.Coll 阅读全文

posted @ 2021-02-22 15:32 kingBook 阅读(297) 评论(0) 推荐(0)

C# List

摘要: List.Sort List<int> list=new List<int>{2,3,5,1,4}; list.Sort((int a,int b)=>{ return a-b; }); string str=""; for(int i=0;i<list.Count;i++){ str+=list[ 阅读全文

posted @ 2021-02-22 11:59 kingBook 阅读(124) 评论(0) 推荐(0)

2021年2月20日 #

unity 凸多形顶点排序

摘要: /// <summary> /// 多边形点集排序 /// </summary> /// <param name="vPoints"></param> /// <returns></returns> public List<Point> SortPolyPoints(List<Point> vPoi 阅读全文

posted @ 2021-02-20 15:52 kingBook 阅读(339) 评论(0) 推荐(0)

2021年2月19日 #

unity Plane

摘要: Plane.distance:指从原点到平面的距离。假设平面法线为(0,1,0),需要将平面向上平移0.5,distance应为-0.5。 Plane.Translate(Vector3 translation):平移方向与法线相反 阅读全文

posted @ 2021-02-19 10:33 kingBook 阅读(776) 评论(0) 推荐(0)

2021年2月4日 #

Git github多帐号配置

摘要: 设现在有两个帐号: aaa、bbb 对应的邮箱地址为: 123@qq.com、456@qq.com 对应的网页地址为: github.com/aaa、github.com/bbb 使用以下命令在.ssh文件夹下创建 key ssh-keygen -t ed25519 -C "123@qq.com" 阅读全文

posted @ 2021-02-04 18:06 kingBook 阅读(560) 评论(0) 推荐(0)

Spine

摘要: 运行库指南: http://zh.esotericsoftware.com/spine-runtime-architecture spine-unity: http://en.esotericsoftware.com/spine-unity-download/#spine-unity 阅读全文

posted @ 2021-02-04 11:40 kingBook 阅读(246) 评论(0) 推荐(0)

VsCode TypeScritp整理Import

摘要: Shift+Alt+O 阅读全文

posted @ 2021-02-04 11:01 kingBook 阅读(140) 评论(0) 推荐(0)

2021年2月1日 #

TypeScript 扩展声明文件 .d.ts

摘要: 如:扩展LayaAir的Vector3,加入一个say方法 LayaAirExtensions.d.ts declare module Laya{ interface Vector3 { say(msg:string):void; } } //或 /*declare module laya.d3.m 阅读全文

posted @ 2021-02-01 12:14 kingBook 阅读(386) 评论(0) 推荐(0)

2021年1月22日 #

UnityEditor 编辑多个场景里的对象,Revert 预制件实例

摘要: 需要把脚本放在名称为'Editor'的文件夹下 using System.Collections.Generic; using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using UnityEngine.S 阅读全文

posted @ 2021-01-22 12:10 kingBook 阅读(489) 评论(0) 推荐(0)

2021年1月19日 #

unity 球形插值

摘要: https://www.cnblogs.com/suoluo/p/5695362.html 阅读全文

posted @ 2021-01-19 20:53 kingBook 阅读(105) 评论(0) 推荐(0)

2021年1月15日 #

ES6

摘要: https://es6.ruanyifeng.com/ 阅读全文

posted @ 2021-01-15 09:28 kingBook 阅读(37) 评论(0) 推荐(0)

2021年1月14日 #

用 console.time()和 console.timeEnd() 测试代码执行时间

摘要: console.time('time'); //开始(开始的名字要和结束的名字一致) //执行的代码 .... console.timeEnd('time'); //结束 阅读全文

posted @ 2021-01-14 13:56 kingBook 阅读(179) 评论(0) 推荐(0)

2021年1月11日 #

LayaAir2.x Quaternion

摘要: Laya.createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void Laya.getYawPitchRoll(out: Vector3): void pitch: x轴的旋转角度 y 阅读全文

posted @ 2021-01-11 22:06 kingBook 阅读(305) 评论(0) 推荐(0)

2021年1月8日 #

3DMAX、C4D、Maya导出fbx到Unity设置

摘要: #####3DMAX 1.选中需要导出的模型,在Hierarchy面板Adjust Pivot中点击Affect Pivot Only。 2.接着在下方的Alignment中点击Align to World。 3.按F12弹出TransformType窗口,切换到Select And Rotate( 阅读全文

posted @ 2021-01-08 09:59 kingBook 阅读(2042) 评论(0) 推荐(0)

2021年1月7日 #

LayaAir2.x 动态创建网格(二) 多个材质贴图

摘要: export default class Test extends Laya.Script{ protected onAwake():void{ //创建3d场景 let scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机 let came 阅读全文

posted @ 2021-01-07 13:57 kingBook 阅读(391) 评论(0) 推荐(0)

2021年1月6日 #

LayaAir2.x 动态创建网格(一) 单一材质贴图

摘要: export default class Test extends Laya.Script{ protected onAwake():void{ let scene = Laya.stage.addChild(new Laya.Scene3D()); console.log(scene); let 阅读全文

posted @ 2021-01-06 15:32 kingBook 阅读(475) 评论(0) 推荐(0)

2020年12月19日 #

Unity RenderTexture 当作为 Camera.targetTexture 时,在某些安卓手机或模拟器无法显示或出现错乱

摘要: using UnityEngine; using UnityEngine.UI; public class Test:MonoBehaviour{ public RawImage rawImage; public Camera cam; private RenderTexture m_renderT 阅读全文

posted @ 2020-12-19 18:50 kingBook 阅读(1919) 评论(0) 推荐(0)

2020年12月18日 #

Unity 使用Spine

摘要: spine-unity 3.8 下载地址与 unity 版本兼容: http://zh.esotericsoftware.com/spine-unity-download/ 说明: http://zh.esotericsoftware.com/spine-unity http://zh.esoter 阅读全文

posted @ 2020-12-18 16:18 kingBook 阅读(363) 评论(0) 推荐(0)

2020年12月8日 #

temp

摘要: https://www.bilibili.com/video/BV1bk4y1675H unity虚拟相机 一键展开关闭unity的 Inspector面板上的所有组件 https://gameinstitute.qq.com/community/detail/118292 Unity 动态展开、折 阅读全文

posted @ 2020-12-08 17:04 kingBook 阅读(131) 评论(0) 推荐(0)

2020年12月4日 #

TypeScript set和get

摘要: class Person { constructor() { } private _name:string; public get name():string{ return this._name; } public set name(name:string){//不能定义返回类型,如: ":voi 阅读全文

posted @ 2020-12-04 18:01 kingBook 阅读(1215) 评论(0) 推荐(0)

unity Screen.orientation

摘要: public static ScreenOrientation orientation ; Project Settings → Player → Resolution and Presentation → Default Orientation,设置为:Auto Rotation 时,在进入应用且 阅读全文

posted @ 2020-12-04 14:57 kingBook 阅读(720) 评论(1) 推荐(0)

2020年12月3日 #

Windows7修改系统启动列表名称

摘要: Windows7修改系统启动列表名称.bat @echo off echo. echo 下面将Windows7启动时的系统列表名称做如下修改: echo. echo “Windows 7”→“Windows 7 x64 中文旗舰版” echo. echo 不修改请退出! echo. & pause 阅读全文

posted @ 2020-12-03 13:13 kingBook 阅读(383) 评论(0) 推荐(0)

Win垃圾清理.bat

摘要: Win垃圾清理.bat @echo off color 0b echo ==正在清除系统垃圾文件,请稍后...... echo ==在程序没有结束的信息时,请勿关闭本窗口 echo ==1. echo ==删除临时文件 del /f /s /q %systemdrive%\*.tmp del /f 阅读全文

posted @ 2020-12-03 13:12 kingBook 阅读(128) 评论(0) 推荐(0)

win10 添加右键获取管理员权限

摘要: win10添加右键获取管理员权限.reg Windows Registry Editor Version 5.00 ;取得文件修改权限 [HKEY_CLASSES_ROOT\*\shell\runas] @="获取管理员权限" "Icon"="C:\\Windows\\System32\\image 阅读全文

posted @ 2020-12-03 12:11 kingBook 阅读(396) 评论(0) 推荐(0)

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