Unity 5 array.Add
Hello guys, it seems that this method does not anymore. Could someone tell me how to add an integer to the existing array without nothing between [] those? int[] tablica = new int[]{liczba1,liczba2};...
View ArticleKeep player grounded when going down hills.
How can I make my player not "jitter" down terrain? I tried physics materials, intense physics, and nothing works. I have had this problem since last night and I need it fixed. I have no idea of how I...
View ArticleSkybox lighting not working
Hi. I'm using Unity 5. Everything was going normally but randomly upon opening the project yesterday, the shadows became extremely dark (near black). I realized it's because the skybox is not creating...
View ArticleI can't acces to a class from other class
Hi I'm making modification to the rolller ball standart asset but is can find the other Class where i've saved my variables. In unity 5. //This is one class using UnityEngine; using System.Collections;...
View ArticleGetComponent C# issue
I want to access to a script in the same object, the script "lal". I want to take the float: "afloat" and make it the same as "myfloat". But there is an issue, and I tryied every thing but I didn't...
View ArticleNew line in string issue
So I have an issue, where I need to use a string that contains a \n, but that does not translate into a newline in unity 5 for some reason. So below is where I want to set this in the inspector: ![alt...
View ArticleCharacter Controller Jumping Higher against Box Collider
Hi there I have a Character controller setup and when I jump normally its all good and walking against a box collision works as it should but... While Moving which registers but the box won't let me...
View ArticleIssue with MonoDevelop not opening. Ideas?
I have tried everything I can think of. I have this issue where whenever I try to open MonoDevelop, it will look like it's loading and opening, and then will suddenly crash and close without any...
View ArticleHow to properly ease out texture scrolling?
I have a scrolling street texture (I already got that part working) and that I use to make it appear as if a car is constantly moving forward on it. I also want to be able to trigger the street texture...
View ArticleWhat can cause shadow slicing while moving camera?
Can't explain better than with video: https://youtu.be/4nIMIL6w-0M The effect I'm trying to achive is a simple **fog of war**. See, I have a **point light** casting shadows on a plane. The plane has a...
View ArticleMultiple Texures on one mesh?
IS there anyway to be able to apply multiple textures in the mesh seen below? Since I need one for eyes, but will I need to map the Eye textures to the mesh in another program? And how could I get it...
View ArticleUnwanted Character Controller Floating
As soon as I press play, my "CC" rises a few cm above the ground and just stays there. Here is what I did: 1. Start a new project 2. Create the ground (Cube) 3. Create the Player(Cube) + add Character...
View ArticleSurface Shader issue: property color gets changed
Hey guys, i'm currently writing a surface toon shader, which has among others an outlineColor property. This is by default black. However, if the shader is used on scaled objects, this color changes...
View Articlecamera.RenderWithShader not working in 5.1.0f3
Since I upgraded to Unity 5.1.0f3, my call to: camera.RenderWithShader(myShader, "Rendertype"); doesn't work anymore: the camera doesn't render anything at all. If I replace it with a generic...
View ArticleProblem with resume game.
I have a problem with my game. First run, play, and everything is fine. When there is an inscription "game over", press the button "back to main menu" and "play", the level is working, but do not run...
View ArticleChild object consistency issue
Hello, I have an issue with a child. I have a spritesheet with the player and several accessories, and I attached them to the player as a child. This is a 2D game. When I move left, I make the local...
View ArticleGfx.waitForPresent kills performances
Hi there, I'm using Unity 5.1.1f1 Personal Edition and I have an issue in a scene in my game: it is quite big, but it is also well optimized with occlusion culling, LOD groups, etc. Testing the scene...
View ArticleWhat sets Canvas.renderOrder and why would it not respect the sorting order?
I have a very strange issue in my game at the moment. I have multiple canvases all using the 'screen space - overlay' render mode, and their sorting orders aren't being respected with out any good...
View ArticleLine cast doesn't work once game is built.
I've encountered a weird issue where Physics2D.LinecastAll stops working when I actually build the game. I use a linecast to check if an enemy has reached a wall, if it has, it will turn around and...
View ArticleGrass issue on Massive Terrains
My terrain size is 10000x10000 and result thats it. Grass density, strength are %100. What to do? ![alt text][1] It's still not good as i want with that. ![alt text][2] [1]:...
View Article