Answer by Benproductions1
[Maybe][1][,][2] [you][3] [should][4] [look][5] [it][6] [up][7][?][8] How to solve a problem: 1. Try to solve it yourself 2. Try to solve it yourself 3. Try to solve it yourself 4. Look it up 5. Try to...
View ArticleAnswer by Benproductions1
[Duplicate Question][1] [1]: http://answers.unity3d.com/questions/44598/text-mesh-font-material-renders-on-top-of-everythi.html
View ArticleAnswer by Benproductions1
Firstly, you're not adding to the current combination. Just look at line 15. Secondly, you're checking if you clicked one button 1234 times. Not if one "button" is 1, the other is 2, the third is 3 and...
View ArticleAnswer by Benproductions1
There are a couple problems (a lot, actually) associated with porting anything to another platform and then there are even more when it comes to Unity. I'll try to give a comprehensive list: 1. One of...
View ArticleAnswer by Benproductions1
Visage also seems to run on the CPU. Before you try to fix a performance issue, how about you try some pretty standard benchmarking and even profiling? Maybe you're using OpenCV wrong? Maybe OpenCV has...
View ArticleAnswer by Benproductions1
You're confusing the difference between a unit and a formula. It might be helpful if you understood the basics of physics, aka [classical mechanics][1]. You might also want to read the documentation of...
View ArticleAnswer by Benproductions1
The [MID format][1] doesn't look very difficult to parse, why not just write your own? Also note, that most of the time, when you can increase the performance of your game by making it a tiny bit...
View ArticleAnswer by Benproductions1
The Component class has getters for most of the built-in components. Quite literally: public class Component : Object { public Transform transform { get { return GetComponent(); } } // etc } Note, that...
View ArticleAnswer by Benproductions1
OK, lets say we have a plane made of 3 points (4 points are not guaranteed to be planar), lets call them: A, B and C. Now we want to calculate a point on the plane, given two of the points coordinates....
View ArticleAnswer by Benproductions1
Note that Unity is .NET based, so all .NET documentation also works for Unity. Please see [.NET DNS Documentation][1] [1]: http://msdn.microsoft.com/en-us/library/ms143998(v=vs.110).aspx
View ArticleAnswer by Benproductions1
While not technically "bad", ie. it won't overload your network (or even come close), it's not even near optimal. Unless you're doing this thousands of times per second, you're not actually sending...
View ArticleAnswer by Benproductions1
Hello, I think you need to go and learn how to use generic lists. Like *any* other `class` type, `List` is a *reference type*, meaning both that it's default value is `null`, and that it will get...
View ArticleAnswer by Benproductions1
Don't quote me on it, but Z-culling is basically free on all graphics cards. You'd almost always get better performance by using the z-buffer for object ordering, than rendering all your objects in a...
View ArticleAnswer by Benproductions1
You probably have another instance of the script somewhere that's throwing the error. That said, you should specify the type of `clone`, just like you did for your other variables.
View ArticleAnswer by Benproductions1
It's a good idea to read/search the documentation before asking questions :) https://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.html > `OnFailedToConnect`: Called on the client...
View ArticleAnswer by Benproductions1
If you desk-checked your code, the problem would have shown itself. Lets assume your serialization worked perfectly and were on the "client" side, someone who doesn't own the `networkView`. What would...
View ArticleAnswer by Benproductions1
I can't really tell what you're actually trying to accomplish, but I can show you why the result will always be `"try again, now can you 'hop'?"` and you should be able to figure out how to accomplish...
View ArticleAnswer by Benproductions1
Just desk-checking your code in `actionPhase` (should actually be `ActionPhase`. We capitalize functions in C#) simply and plainly reveals your infinite loop: 1. set `turnState` to `1` 2. Begin a...
View ArticleAnswer by Benproductions1
In C#, as well as UnityScript, JavaScript, Java and basically every language that uses `{}` for code blocks, there are two "different" kinds of `if` statements: The first one works like expected and...
View ArticleAnswer by Benproductions1
You do know the first two links that appear in a *google* search for "Google play game services multiplayer" are basically tutorials and how-to's for multiplayer with google play game services? If...
View Article