- 博客(22)
- 资源 (5)
- 收藏
- 关注
原创 unity Scroll View 抖动
项目发布到Android上出现的问题,一开始以为是图片太多造成的卡顿。后来不管怎么测试都是抖动。就是什么都不加也抖动。后来经过反复测试终于找到原因了。是刷新帧率的事,把他跳到60可以改善好多。
2024-09-30 10:48:24
391
原创 VTK窗口截图传化为opencv格式的mat
#include <iostream>#include <opencv2\highgui\highgui.hpp>#include <opencv2\core\core.hpp>#include <opencv2\imgproc\imgproc.hpp>#include <vtkSmartPointer.h>#include <vtkWindowToImageFilter.h>#include <vtkSphere.
2022-01-18 15:44:40
2795
原创 unity P点绕A点旋转角度
/// <summary> /// 结构:表示一个点 /// </summary> public struct RatePoint { //横、纵坐标 public double x, y; //构造函数 public RatePoint(double x, double y) { this.x = x; this....
2021-03-26 16:35:36
572
原创 unity 限制范围拖拽UI
/************************************************************************* * Copyright © #COPYRIGHTYEAR# LiuKe. All rights reserved. *------------------------------------------------------------------------ * File : DragHandlerCopy.cs * De.
2020-09-15 15:38:10
488
2
原创 unity 五指检测,并得出点击五个点的中心
/************************************************************************* * Copyright © #COPYRIGHTYEAR# LiuKe. All rights reserved. *------------------------------------------------------------------------ * File : FiveFingers.cs * Descri.
2020-05-25 09:56:19
257
原创 unity 子物体包围盒
public static Vector3 GetCenter(Transform tans) { maxBound = new Bounds(); if (tans.childCount > 0) { if (tans.GetChild(0).childCount > 0) {...
2020-05-08 14:11:49
459
原创 无事写个时针玩玩
using UnityEngine;using System.Collections;using System.Collections.Generic;using System;public class Clock : MonoBehaviour{ const float degreeaPerHour = 30f; const float degreeaPerMinu...
2020-03-25 13:43:52
103
原创 自己写的列表
根据项目要求自己写了个滚动列表,以方便自己以后随时使用/************************************************************************* * Copyright © 2019 LiuKe. All rights reserved. *--------------------------------------------...
2020-03-24 09:12:18
128
原创 unity 中运用系统Timer设计计时器
/************************************************************************* * Copyright © 2020 LiuKe. All rights reserved. *------------------------------------------------------------------------...
2020-03-19 15:14:28
487
原创 模型自动分离,自动染色
using System.Collections;using System.Collections.Generic;using UnityEngine;//using VRTK;public class SZRVRHelper : MonoBehaviour{ #region GetAllTransform public List<Transform>...
2019-05-16 17:28:40
143
转载 [Unity基础]导入贴图、模型等资源文件时自动设置参数
代码设置Unity资源导入参数脚本继承至AssetPostprocessor, 存放在Editor目录下!该类官方文档:https://docs.unity3d.com/ScriptReference/AssetPostprocessor.html该类下有很多种资源导入完成消息通知:OnPostprocessAudio音效导入完成OnPostprocessMaterial材质...
2019-04-24 08:44:58
1223
转载 unity批量修改图片
这个Unity3D批量修改贴图导入设置工具脚本十分小巧,但是威力大。特别针对大批量贴图要调整尺寸等等的时候作用尤为明显。在菜单中添加“Custom→Texture”的方式来批量改变所选的贴图导入设置。Unity本身只能一次打开一张图片进行导入设置,目前这个脚本可以批量更改贴图格式,是否开启MipMap,调整纹理最大尺寸,是否可读等等。用法是把脚本放在你项目的资源目录的Editor...
2019-04-23 22:43:19
1020
转载 unity合并网格
using UnityEngine;using System.Collections;using System.Collections.Generic; public class CombineMeshes : MonoBehaviour{ void Start() { //获取MeshRender; MeshRenderer[] me...
2018-06-21 18:07:21
190
四面体生成工具(包括sofa里的四面体生成工具,以及CGAL四面体生成)
2023-07-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人