unity

Unity GET/POST Wrapper

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is a Unity3d in C# question. The goal is to create an object such that I can pass in a URL and receive data via GET , an object that I would create the would be a wrapper for the WWW logic. I would also like a 'POST' object too, where I could supply a url and a 'Dictionary' of key-value pairs as the post arguements. Sooo... we ultimately would like something like this: get_data = GET.request("http://www.someurl.com/somefile.php?somevariable=somevalue"); AND post_data = POST.request("http://www.someurl.com/somefile.php", post) // Where

unity / blender / FBX / semi transparent

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im getting a strange issue with importing .FBX into unity. It does not look like it's an issue with normals. I have noticed on unity the material is classed as 'transparent' and changing this to 'opaque' does fix the issue but i would like to find out whats going on here. Unity: 2018.3.3f1 Blender: 2.80.0 回答1: I've just run into a similar issue. I've not figured out why it's happening yet, but there seems to be a bug report out. Will update if I find out what's causing it. Update 2019-02-13: Haven't found the exact underlying cause but I've

Unity3D - Get smooth speed and acceleration with GPS data

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Unity3D and I created simple distance, speed and acceleration calculator using latitude and longitude of last position. I'm calculating last distance, speed and acceleration in each GPS update (approximately once per second). But sometimes (2-3 second interval) latitude and longitude values changes rapidly (in clear weather and no obstacles). That's why speed and acceleration values gets unreal results. For example, at stable 40 km/h speed, speed value becomes 60 km/h and returns to 40 km/h within 2-3 second. I'm here to ask how

Unity NetworkManager component, IP for LAN?

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In Unity's new networking, I have two computers side by side on the same WiFi network. Using NetworkManager , I am trying to network them over the LAN . TBC, absolutely nothing to do with global internet networking, and not on localhost. On the left is 192.168.0.26 . On the right is on 192.168.0.120 . Say we want the left one to be the server, i.e. simply using Debug.Log("I'm now a server"); networkManager.StartServer(); Say we want the right one to be a client (So, StartClient() .) TBC I simply looked at ipConfig/etc on the two computers,

Difference between HttpClient and Unity's UnityWebRequest/WWW API

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Unity now supports .NET 4.5 and I'm able to use the HttpClient class from the System.Net.Http namespace. That is great since I have existing client libraries which are therefore easy to reuse. Does anyone know the internal difference between using the mono HttpClient and Unity's own networking classes? I'm afraid that the HttpClient is not as optimized for the different platforms and might therefore cause trouble or be slower. 回答1: There are many differences between the two. UnityWebRequest won't allow you to use change some headers. With

Unity Git - Ignore Library

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have been trying to setup Git with Unity past two days on our project between Mac and Pc. We got it kinda working, but we still have issues with the metadata and conflicts in Library/AssetDatabase3. We got the whole Library folder in the .gitignore file but for some reason it seems some files in it are not ignored. We will also get during commits huge list of metadata instead of only seeing changes on files which actually changed, there will be list of hundreds of metadata. Again coming from Library. Any idea why Library folder doesn't

Unity - Error building Player: CommandInvokationFailure: Failed to re-package resources

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm having some issues with Google Play Services and Unity 5.0.4. The issue occurs when I want to build my build my project, I get the following error CommandInvokationFailure: Failed to re-package resources. I've read a lot and tried to fix it, but no solution been working for me. I've got the latest Google Play serivces (Rev 32), Google Repository (Rev 32) and Android Support Repository (Rev 35). I've also read that you can't have API 24 installed, so I've uninstalled and removed it completely. I can't find any other solution to

Unity3D. Trying to send command for object without authority

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a multiplayer turn-based strategy game that needs a game manager, controlling current game state (who's turn it is etc.). This manager should be common for every client, it's state should be synchronized on server. Here's how I'm doing this: The game manager object is NetworkBehaviour and it has NetworkIdentity which is not local player authority nor server authority. I've made a custom NetworkManager and it spawns the Game Manager on client connect, also testing if it is a server. Here's a code: public override void OnClientConnect

Unity3d - Failed to load 'Assets/Plugins/QCARWrapper.dll'

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here . My application requires vuforia. So I download vuforia package from here . Unity 5 is 64 bit. On unity editor, I delete MainCamera and add ARCamera . There is an error message on unity console. The message is below : Failed to load 'Assets/Plugins/QCARWrapper.dll' , expected 64 bit architecture ( IMAGE_FILE_MACHINE_AMD64 ), but was IMAGE_FILE_MACHINE_I386 . Vuforia .

Unity IoC does not inject dependency into Web API Controller

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm very new to using Unity, but my problem is that whenever I call my web service, I get an exception stating that "Make sure that the controller has a parameterless public constructor" I've followed multiple tutorials and I still get the same issue. In the Register function of my WebApiConfig class, I have var container = new UnityContainer(); container.RegisterType (new HierarchicalLifetimeManager()); config.DependencyResolver = new UnityResolver(container); Here is my UnityResolver class using Microsoft.Practices.Unity; using System;