- 博客(7)
- 收藏
- 关注
原创 运行时输出drawcall、顶点数量
$运行时输出drawcall、顶点数量。 $https://docs.unity3d.com/2020.2/Documentation/Manual/ProfilerRendering.html?continueFlag=a795970d585940c1b9ba34c4e7cb6a3e
2021-02-22 04:25:34
1566
1
原创 Urp7.4.3改unity2019.3低版本支持
Urp7.4.3改unity2019.3低版本支持类似问题:unity社区Github记录Github步骤1找到文件复制github代码修改 package.json步骤2注释掉报错代码,等待重新编译。等待时间较长,需要把整个项目资源重新编译。7.4之后灯光有变化不支持低版本完成后可使用。附:URP软件包版本与Unity编辑器版本的兼容性...
2021-02-10 12:40:37
467
原创 捏脸捏身体种,删除bip骨骼缩放
总体思路:动作信息存在动画片段中骨骼的位移,旋转和缩放。缩放一般很少用,可能在一些显示隐藏中使用。捏骨通过骨骼缩放骨骼缩放实现,体型存在骨骼的缩放中,和动作不相冲突删除列表:using System.Collections;using System.Collections.Generic;using UnityEngine;public class PathData_female{ public static string[] data = { "Bip001/Bip001 Pelv
2021-02-07 16:30:59
957
原创 扫描预制体的shader类型
扫描预制体的shader类型 [MenuItem("工具/测试工具/扫描场景预制体")] public static void ScanScenePrefab() { GameObject go = Selection.activeObject as GameObject; if (go != null) { foreach (var renderer in go.GetComponentsInChildren<
2021-02-04 11:41:19
161
原创 显示当前帧速FPS
显示当前帧速FPSusing System.Collections;using System.Collections.Generic;using UnityEngine;public class ShowFPS : MonoBehaviour{ float _updateInterval = 1f;//设定更新帧率的时间间隔为1秒 float _accum = .0f;//累积时间 int _frames = 0;//在_updateInterval时间内运行了多
2021-02-03 14:02:39
303
原创 加载lightmap
载入lightmapusing UnityEngine;using System.Collections;using System.Collections.Generic;public class PrefabLightmapData : MonoBehaviour{ [System.Serializable] struct RendererInfo { public Renderer renderer; public int lightm
2021-01-20 09:41:12
157
原创 unity内工具 待机勾选循环和查找特定预制体是否有子级
美术资源工具 unity内查找特定预制体是否有子级unity内工具 待机勾选循环和查找特定预制体是否有子级区分查找美术资源内有无特定子级,比如:根据资源内不同hero的类型(近远程)不一样,attack下有无子级作为区分,快速查找attack下有无子级。上部分为循环动作待机‘standby’勾选循环下部AAA/BBB为子级查找using System.Collections;using System.Collections.Generic;using System.IO;using Sys
2021-01-20 09:29:02
220
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人