摘要:
代码如下: 批量设置: 1 using System.Collections.Generic; 2 using System.IO; 3 using UnityEditor; 4 using UnityEngine; 5 6 public class TextureCompressTool : Sc 阅读全文
摘要:
以下代码实现了Addressable Assets的初始化,登陆时下载,静默下载,如下: 1 using ClientData; 2 using Common; 3 using System; 4 using System.Collections; 5 using System.Collection 阅读全文
摘要:
代码如下: 1 [MenuItem("FashionBeat/Common/Remove missing component")] 2 static void RemoveMissing() 3 { 4 for (int i = 0; i < Selection.objects.Length; i+ 阅读全文
摘要:
直接看效果,修改前为: 修改后为: 工具代码如下: 1 [MenuItem("Saber/Asset/Fix Dance Anim")] 2 static void FixDanceAnim() 3 { 4 UnityEngine.Object[] objs = Selection.objects; 阅读全文
摘要:
2021年8月13日之后使用git push会报下面这个错: fatal: HttpRequestException encountered.remote: Support for password authentication was removed on August 13, 2021. Ple 阅读全文
摘要:
如下: @echo off set srcpath=F:\配置表\配置表 set destpath=F:\git_code\Server\server\server\data echo 源地址:%srcpath% echo 目标地址:%destpath% echo\ echo\ set srcmus 阅读全文
摘要:
代码如下: 1 using System.Linq; 2 using System.IO; 3 using UnityEditor; 4 using UnityEditor.AddressableAssets; 5 using UnityEditor.AddressableAssets.Settin 阅读全文
摘要:
首先介绍几种缓动类型: 1. EaseIn,缓动发生在入口处 2. EaseOut,缓动发生在出口处 3. EaseInOut,两边都有缓动 如图: 常用的几种插值公式如下: 1. 帧数无关的EaseOut插值 x = Lerp(x, y, t); 2. 帧数无关的SmoothDamp插值,常用于相 阅读全文
摘要:
代码如下: @taskkill /im AccountServer.exe /f @taskkill /im Agent.exe /f @taskkill /im GameServer.exe /f @taskkill /im GroupServer.exe /f start AccountServ 阅读全文
摘要:
效果如下: 代码如下: 1 float3 RGBToHSV(float3 rgb) 2 { 3 float R = rgb.x; 4 float G = rgb.y; 5 float B = rgb.z; 6 float3 hsv; 7 float max1 = max(R, max(G, B)); 阅读全文