- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 安卓上使用ble,并和unity通信
首先是java代码package com.miyan.lib4unity;import android.Manifest;import android.app.Activity;import android.app.Application;import android.bluetooth.BluetoothAdapter;import android.bluetooth.BluetoothDevice;import android.bluetooth.BluetoothGatt;im.
2021-04-19 15:48:47 932 14
原创 unity中scrollview滑动时自动回弹而非驻留的问题
在unity中创建一个scrollview,在content下放置足够多的子物体,点击运行,会发现拖动内容后总是自动回弹,而不是驻留在拖动到的位置。这种情况是因为content的长度或者宽度(根据你是上下滑动还是左右滑动)不够,这时只要在content上添加一个content size fitter,并根据上下滑动还是左右滑动改变对应的fit为preferred size,就没有问题了。...
2021-04-06 18:00:58 3000 1
原创 unity中获取外置摄像头图像后,显示的尺寸问题。
private WebCamTexture cameraTexture; private bool isPlay = false; private string cameraName; public int getWidth = 1920; public int getHeight = 1080; IEnumerator CamInput()...
2019-01-09 17:56:23 1524
原创 unity + Kinect 获取原始深度图像。
做项目时发现Kinect在抖动或者移动时,会无法识别人物,所以只能自己获取原始深度图像信息。以官方sdk的示例为目标,做了一个demo。项目环境为win8 + unity2018.2.12 + Kinect v2 Examples with MS-SDK 2.16.2.unitypackage。using System.Collections;using System.Collecti...
2018-10-19 10:12:57 3788 2
原创 unity2017仍不支持SerialPort.DataReceived这个委托
今天测试一下,发现绑定后不会触发方法,还是老老实实手写线程读取处理吧。版本是unity2017,.net4.6。具体方法如下using System.Collections;using System.Collections.Generic;using UnityEngine;using System.IO.Ports;using System.Threading;using...
2018-09-04 15:09:32 1163 4
原创 华为手机安卓8.0以上的谷歌商店找不到的问题
华为手机的安卓8.0都有谷歌的所有框架,所以不用装任何谷歌安装器,直接到华为应用商店里搜Google play store,就会发现这个程序,然后它默认提示不建议更新,不管它,直接更新,更新完,就在桌面发现google商店的图标了。这时候找个梯子软件,然后就可以出去浪了。...
2018-08-22 15:33:36 21188 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人