unity3d

Unity3d基于Socket通讯例子(转)

心不动则不痛 提交于 2021-02-20 05:59:19
按语:按照下文,服务端利用网络测试工具,把下面客户端代码放到U3D中摄像机上,运行结果正确。 http://www.manew.com/thread-102109-1-1.html 在一个网站上看到有关于Socket的通讯事例,就拿来学习学习,高手就莫喷! 原文链接: http://bbs.9ria.com/thread-364859-1-1.html 首先, 直接两个服务器端代码丢到相机上,然后也把客户端代码挂到相机上,发布服务端 ,再把 服务器两个代码勾掉再发布客户端 , 最后运行服务端,再运行客户端。 unity里面展示:file:///C:/Users/Administrator/AppData/Local/YNote/data/qq233344ACD51 2D 13C553FF71505B4C730/8d394e1cb202445dafbc1da3c2f90daa/clipboard.png <ignore_js_op> 170852ep29d9rlojpje9cd.png (161.87 KB, 下载次数: 79) 下载附件 保存到相册 2017-3-28 13:37 上传 file:///C:/Users/Administrator/AppData/Local/YNote/data/qq233344ACD512D13C553FF71505B4C730

Real time point cloud processing and latency

北战南征 提交于 2021-02-20 03:53:10
问题 Our project is to integrate Lidar system into virtual reality (unity). I could achieve that integration with ROS-bridge. Next step is to process the point cloud data before we send it to unity system. Lidar sensor velodyne VLP-16 Ubuntu 18.4 IDE: Pycharm (python) Point cloud processing: python point cloud library with ROS ros-bridge with unity system Problem Without processing, there is only 1 second latency from sensor to unity visualization. But processing point-cloud data in ROS(pycharm)

Unity Firebase is not initializing on Android

笑着哭i 提交于 2021-02-20 03:51:22
问题 I have a Firebase Unity project for Android. I'm currently using Unity 2019.3.1 and using Firebase SDK 6.15.2. Below is the code I used to connect to Firebase: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using Firebase; using Firebase.Auth; using Firebase.Firestore; using Firebase.Extensions; public class FirebaseManager : MonoBehaviour { public static FirebaseManager instance; private FirebaseApp app; private async

Unity - OnTriggerEnter is not being called

試著忘記壹切 提交于 2021-02-20 02:58:26
问题 I'd like to make an aquarium where diverse fishes are existing. I tried not to let fishes pass through cubes, but the OnTriggerEnter function doesn't work even if objects enter the trigger. These pictures represent each of whale and cube inspector factors. 回答1: You only need to add a Collider to your fish, (at the same level of the Flock script, or on a child GameObject ). OnTriggerEnter will only fire when a Collider enters a Trigger Collider See MonoBehaviour.OnTriggerEnter(Collider) 回答2: I

Unity - OnTriggerEnter is not being called

痴心易碎 提交于 2021-02-20 02:58:08
问题 I'd like to make an aquarium where diverse fishes are existing. I tried not to let fishes pass through cubes, but the OnTriggerEnter function doesn't work even if objects enter the trigger. These pictures represent each of whale and cube inspector factors. 回答1: You only need to add a Collider to your fish, (at the same level of the Flock script, or on a child GameObject ). OnTriggerEnter will only fire when a Collider enters a Trigger Collider See MonoBehaviour.OnTriggerEnter(Collider) 回答2: I

Unity socket project don't work when installed to iPhone

倖福魔咒の 提交于 2021-02-19 11:00:05
问题 My Unity project related with socket communication works fine on my Mac. I run a C# server on my own computer's terminal and then run the unity project. The unity project can connect to my server and receive the message sent by the server. Every thing works fine. However, when I Build and Run this unity project to my iPhone, it comes with some problems: 2016-12-26 12:43:43.915127 ProductName[8497:5717779] [DYMTLInitPlatform] platform initialization successful 2016-12-26 12:43:44.095512

Unity socket project don't work when installed to iPhone

社会主义新天地 提交于 2021-02-19 10:59:30
问题 My Unity project related with socket communication works fine on my Mac. I run a C# server on my own computer's terminal and then run the unity project. The unity project can connect to my server and receive the message sent by the server. Every thing works fine. However, when I Build and Run this unity project to my iPhone, it comes with some problems: 2016-12-26 12:43:43.915127 ProductName[8497:5717779] [DYMTLInitPlatform] platform initialization successful 2016-12-26 12:43:44.095512

Importing NSubstitute into Unity project

我是研究僧i 提交于 2021-02-19 08:21:57
问题 I'm trying to use NSubstitute in my Unity project (Unity version 2019.2.2f1). No matter how to import it, my IDE, both Visual Studio and JetBrains Rider, would give an error when I try using NSubstitute saying NSubstitute is undefined. I have tried many options and versions of NSubstitute packages (4.2.1 and 2.0.3). I also import the dll file from net35 folder of the package into a Plugins folder in my Unity project. I also tried to install the same version of NSubstitute using Nuget in the

Importing NSubstitute into Unity project

会有一股神秘感。 提交于 2021-02-19 08:21:33
问题 I'm trying to use NSubstitute in my Unity project (Unity version 2019.2.2f1). No matter how to import it, my IDE, both Visual Studio and JetBrains Rider, would give an error when I try using NSubstitute saying NSubstitute is undefined. I have tried many options and versions of NSubstitute packages (4.2.1 and 2.0.3). I also import the dll file from net35 folder of the package into a Plugins folder in my Unity project. I also tried to install the same version of NSubstitute using Nuget in the

Blender model turning black when scaled down in Unity

独自空忆成欢 提交于 2021-02-19 08:17:27
问题 I made a model in Blender, which I would like to import into Unity. When importing into Blender, at full scale, the colours show up correctly : However, I need to scale it down (the original model is very large). And when I do so, all the colours turn black. All of a sudden, once passed a seemingly arbitrary threshold : I tried UV unwrapping in Blender, as well as fixing normals (inside and outside). But it doesn't fix this problem. What could be the cause of this? 回答1: Please try to use 0.1