Scene is missing and i saved it?
I saved my unity project RIGHT before it crashed, and I reopen it and everythings gone except for the trees in my project. How do I get my scene back? (I saved multiple times before crashing) Please...
View ArticleCan you save more than 1 array into a file?
Is there? BinaryFormatter bf = new BinaryFormatter(); FileStream fs = new FileStream(Application.dataPath+"/Saves/arrays.dat", FileMode.Open); array = (int[])bf.Deserialize(fs); Thats for the loading,...
View Articlehow to make System.Action invoking?
it is in a static class so I cannot use mono invoke. using System; // ... public static void Invoke (){ Action t = Test; t.Invoke(); } private static void Test(){ Debug.Log("WORKS"); } } this seems to...
View ArticleHow to prevent IntField update its value while being edited?
Hi. I want to make an editor for an int value which displays a simple popup if the value is less than 4 and an input field otherwise. Like this: ![alt text][1] ![alt text][2] Here's my enum: enum...
View ArticleCreate List of Dictionaries C#
I'm using Parse (parse.com) to store saved games on the cloud. They limit what kind of data types you can use. I'm new to C# - usually I use Javascript but Parse does not work with Javascript I'm...
View ArticleOnMouseOver when short distance away.
Hopefully this one doesn't break the internet! I have a number of objects in my game where OnMouseOver is displays a GUI.Label with the name when near enough. All of this works just fine until I get...
View ArticleInstantiate prefab and passing parameter
There is a way to instantiate a prefab and acess a component from it ? I want to instantiate a bullet, and then i say to the bullet for e.g: "Hey, your power is this and your range is this". Hope you...
View ArticleLooping a 2d level
I'm creating a simple vertical scroller game where the player jumps up a large shaft. The game never ends, you simply try to get as high as you possibly can. I have a portion of a level laid out that I...
View ArticleTessellation doesn't work
Tessellation seems not working (image) Why? How I can fix that? ![alt text][1] [1]: http://i.snag.gy/LOMrA.jpg
View ArticleMaking a First Person Character Controller walk continously?
I am looking to create a game similar to the 'Impossible Game' but from a first person perspective. I understand how Unity works and I am in the process of learning C# at the side of my school work. I...
View ArticleGameObjects vs. Submeshes
Hi! I'm creating a Voxel Terrain engine. My chunks' dimensions are: 16x16x16. It means that I need a lot of them to fill up the space I want. It also means (for now) instantiating and removing a lot of...
View ArticleWhy am I getting "Internal compiler error..." immediately after downloading...
Hey all, I'm brand new to Unity, but liking what I'm seeing so far. I was trying to follow along with Mike Geig's LMG tutorial here:...
View ArticleUnity Offline?
When I want to import a model into my Unity scene it keeps on telling me that I am offline and I need to be online if I want to import any models. I don't understand what is going on if someone could...
View Articlewhat does internal protect?
I know it protects assembly but what does that mean? as IF I make a script with internal class, internal variables, some other script can access them all. I find internal like public. thanks in advance.
View ArticleI have a error that i can figure out about spawning game object
i am a very new beginner and i am trying to figure out this error's assets/SpawnObstacle expected insert a semicolon at the end assets/SpawnObstacle unexpected token gameObject assets/SpawnObstacle...
View ArticleHow can I stop the camera from moving slowly after hitting a collider?
I have a 1st person free flying camera. It can look around and move forward/backward/strafe. When I hit a collider, the camera stops and does not go through the collider, but then, when I stop moving...
View ArticleHow can I move the char and rotate the camera at the same time with xbox...
Hi, I am using the 2 scripts below to control my camera and character. The problem is, no matter what I do, I can't get it to let me walk around and rotate the camera around my character at the same...
View ArticleScript Chat Error.
Well I found this script here on my computer and decided to use it but it has a bug that does not know what it is, does anyone could help? Script: using UnityEngine; using System.Collections; public...
View ArticleAudio Problem
I am trying to play a audio when an object is destroyed the only problem with that is when I click "Play on Active" It just keeps playing every time the object is spawned. One way I was able to fix...
View ArticleHow to save text data over the internet?
So i have been trying to save data in my game for use on another computer. For example, i have a String[] of information that i need to somehow "upload" to the internet so that it can be accessed from...
View Article