Unity - WWW.text returning null on android device

I am developing an Android app with Unity. But I cannot connect to a internet server with it. Tho this gives false, which is good: Application.internetReachability == NetworkReachability.NotReachable But when trying to execute this snippet: IEnume...
more »

2017-03-13 12:03 (1) Answers

Unity Game will not build with GoogleMobileAds

I have been trying to build my game to iOS for quite some time now but whenever I try to build the project with GoogleMobileAds it won't work. The ads work fine on android but not on iOS. If i remove the GoogleMobileAds completely the project builds ...
more »

2017-03-11 20:03 (1) Answers

How to approach refactoring this code (C#, Types)

First off, my apologies for the title of question. I'm not really sure what it's called that I'm trying to accomplish so I'll just get straight to it. I'm currently developing a game engine in c# using GDI+ and have implemented a components class. T...
more »

2017-03-06 16:03 (8) Answers

not finding android sdk (Unity)

**1)**Error: Invalid command android UnityEditor.HostView:OnGUI() **2)**CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. C:/Program Files/Java/jdk1.8....
more »

2017-03-01 18:03 (1) Answers

Why are ignored files not being ignored?

So I know variants of this questions have been asked and answered before, so first I want to go through some of my own research to show you that I do not have a duplicate. The git ignore is not actually a .gitignore file: .gitignore is not working...
more »

2017-02-28 21:02 (3) Answers

Will these code be safe in memory in c#?

I have a question about the following code. First, these codes worked well. However, there is no declaration only defined about “courses” in class Student.If in the Constructor of Student the argument is constant, will these code be safe? Than...
more »

2017-02-19 17:02 (1) Answers

Can't start a Handler on the main thread

I'm working on a .jar api to read Google Fit data from Unity3D. The problem that I'm facing right now is that when I want to execute this block of code: private void buildFitnessClient() { mClient = new GoogleApiClient.Builder(myContext).addApi(...
more »

2017-02-10 16:02 (0) Answers

how to save a .unity file as a .unity3D

As part of my university project, I am to upload a game that I have made at university, and it is advised that we first upload to Kongregate (as the comments there will provide feedback) It appears that I can only upload a .unity3D file, whereas the ...
more »

2017-02-08 20:02 (0) Answers

Unity Serializing Nested Dictionary to JSON

The REST service I am using, RSA Archer, is expecting an integer key which means I simply can't nest [Serializable] objects and then JsonUtility.ToJson() to create the serialized JSON string. I thought I found a solution to create a Dictionary object...
more »

2017-02-08 03:02 (1) Answers

Git checkout freezes and does not change branch

I am working on a git branch in a Unity project. Issue with Unity is that you get loads and loads of files which can be binary and very large. Well, it's game development. I'd like to merge my branch to the master, which I haven't done for a couple ...
more »

2017-02-05 08:02 (1) Answers

Detect Apple Subscription Expiration

I want to detect that customer's subscription now over / complete so I can remove facilities I was providing to them. On each launch of application, I have following kind of details from Apple Subscription: public void CheckIfSubscriptionIsActive()...
more »

2017-02-03 09:02 (1) Answers

C# Data transfer using Socket class slow

I am trying to send the video through wifi using TCP. Client is sending the data and the server is receiving it. I am using gstreamer to send the jpeg encoded stream of webcam using this pipeline ksvideosrc device-index=0 ! jpegenc ! tcpclientsink ho...
more »

2017-01-25 14:01 (0) Answers

Unable to sign iOS app built with unity

More than a week ago i finished coding my application on unity and i tested it only on android and everything works good. I read every tutorial on unity website and i watched every video on youtube but I still have many issues on testing my app on iO...
more »

2017-01-15 17:01 (0) Answers

Unity iOS Build size is way big

Currently I'm on the verge of making a 2D puzzle game for iOS. When I zip my project it's size become 16MB approximately. When I build it in xcode the project size become 780MB and when I archive it then it becomes 1.5GB. But the real problem begin...
more »

2017-01-15 07:01 (1) Answers

Unity (C#) -> Kotlin <- Coroutines

I'm experimenting with Kotlin for the first time and would love some help. What the code below does is pause execution of the current function without sleeping the executing thread. The pause is based on the amount of time provided. The function wor...
more »

2017-01-07 11:01 (1) Answers

Incrementing euler angels. Bad documentation?

I'm a bit confused about some documentation for Unity pertaining to Euler angles. I just want to know if I'm not understanding a difference, or the sample does not follow the best practice. The documentation here: https://docs.unity3d.com/ScriptRefer...
more »

2017-01-06 06:01 (2) Answers

Saving data in Unity

The game is an open world game where you can walk and drive around with different vehicles and place structures on the ground. Because the world is huge I want player and different vehicles/structures to stay where they were left. For this reason I n...
more »

2017-01-03 23:01 (1) Answers

Writing a Unity Git Ignore File

I am new to Subversion with Unity and want to start a little Rpg with two other developers. I know you can create a Gitignore-File on https://www.gitignore.io/ but i really don't know if just passing in "Unity" is correct. We use Tortoise Git and j...
more »

2016-12-21 10:12 (2) Answers