共 45 篇文章 |
|
在Linux系统中,调用TCPDump来录制pcap文件。string outputFileName;} void JudgeIfHasTcpDump() { Tuple<string, string> tuple = CreateProcess("-c \"which tcpdump\"", null);} } Tuple<string, string> CreateProcess(string args = null, string command = null) { if (p ... 阅3 转0 评0 公众公开 24-01-30 17:54 |
在Unity中录制pcap文件。录制pcap,我用的是sharppcap的dll库文件。public class RecordPcap : MonoBehaviour{ public static RecordPcap Instance;public Dropdown dropdown;public Text text;public Text text_FileLength;string sourceAddress = "10.42.0.92";} void InitDevice() { var ver = Pcap.if (devices ... 阅12 转0 评0 公众公开 24-01-18 11:42 |
想通过命令行启动unity打包出来的程序,并且可以传入一个命令比如某个参数。想通过命令行启动unity打包出来的程序,并且可以传入一个命令比如某个参数,然后程序启动后立即执行某个方法,怎么做?您可以通过命令行启动 Unity 打包出来的程序,并传递参数给程序。为了在程序启动后立即执行特定方法,您需要在 Unity 项目中编写相应的代码来处理接... 阅154 转0 评0 公众公开 23-11-02 17:43 |
Unity打包Mac版本后,在某些Mac上无法运行处理办法:chmod -R 777 ./Desktop/output/Test.app/Contents/MacOS/Test.chmod -R 777 + “absolute path”/Contents/MacOS/Test.step1: sudo xattr -r -d com.apple.quarantine "absolute path"step2: chmod -R 777 "absolute path"/Contents/MacOS/Test.chmod -R 777 ./Desktop... 阅521 转0 评0 公众公开 23-04-06 17:40 |
阅135 转0 评0 公众公开 22-11-10 14:11 |
阅669 转12 评0 公众公开 22-11-10 09:38 |
Unity WebGL移动端去除警告。using UnityEditor;public class PostBuildAction{ [ [PostProcessBuild] public static void OnPostProcessBuild(BuildTarget target, string targetPath) {var path = Path.Combine(targetPath, "Build/UnityLoader.js");var text = File.ReadAllText(path);text = text.WriteAllText(path, text); 阅91 转1 评0 公众公开 22-10-15 20:39 |
Unity人脸识别,离线通用人脸识别,基于OpenCvForUnity插件,实现摄像头画面通用人脸识别功能,适合小白入门(一)接下来是实现人脸识别:既然需要识别人脸,我们需要人脸识别训练数据。faceRect为被检测到的物体的矩形向量组,保存有x,y,w,h四个参数,,比如我们检测到人脸,首先我们需要知道这个人脸的位置,其次,我们需要知道这个人脸的大... 阅1663 转7 评0 公众公开 22-01-19 18:13 |
Kinect 在单人识别时候,0号玩家离开的时候,不能够自动识别其他人。最近做一个kinect的软件,只有一个人玩的,玩家识别是靠近识别。但是 userID 是0的时候,kinectManager里面标识的是 没有检测到玩家。最终我的解决办法如下:红色区域就是 当检测到玩家ID是0的时候,再次将kinectManager里面用户清除 然后重新检测(其实我其他地方点击按钮做... 阅148 转0 评0 公众公开 22-01-07 09:37 |
【Unity3D】如何删除Inspector上黄色missing警告。如果删除预制体后,场景中仍旧使用着被删除的预制体。则会出现以下情况。如何消除这个黄色警告,因为这个问题比较冷门,网上一时找不到正确答案,故在此记录。1、选中场景中出警告的物体。2、点击以下按钮。 阅130 转0 评0 公众公开 21-11-23 18:21 |