A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Thank you for the suggestion but I'm trying to avoid GetComponent and comparison with null in my code. But if that is the only way.. Regards,
Hi guys, I have 2 scripts, one for the player and one for the enemy (there can be many enemies) OnTriggerEnter will make the enemy offer points...
Destroy(hit.collider.gameobject)
Disable the WASD control when you detect that the ball should not be controlled by the player anymore. Then play an animation where the ball...
Thank you very much, this is perfect! While I used dictionaries before, never used the System.Action, which seems it will do wonders for me....
Hi, I have a coder's block:) I have the following script attached to all of my collectables: I would like to find a way in which instead of the...
Hi. I am building a procedural game similar to Minecraft. The idea I have is to use 3d chunks and then generate vertices for each chunk and fill...
Thanks for your reply - now you cleared it up for me - I was going over the maximum render distance. I was just testing the limits of Unity with...
The code below must render 125000 meshes! That is what I use. Meshes have a size of 70x70x70 but only few cubes (so I don't hit 65534) vertex...
Hi, I am running the following test in Unity: Render 125000 (yes, 125 thousand ) meshes and render the FPS and triangles on screen. The results...
So I fixed it by removing all the directional lights and calculating the light in the shader myself. Then I added the AO I had calculated...
No, I am calculating my own AO and then apply it on mesh.normals.. (exactly when calculating the normals) But something is really bugged.. the...
So here's how it looks with a default shader in Unity 4.5 (diffuse) [IMG] Here's now it looks in Unity 5 with a legacy shader (diffuse). Looks...
Found the issue: Normals with values between 0.1f and 1.0f have same light intensity. Only difference is with 0 - no light, In Unity 4, values...
Hi, I added ambient occlusion in my procedural game by altering the values of the normals. While in Unity 4.3 everything renders accurately, in...
I don't want to use the ambient light because I can't use the Ambient Occlusion (which is in the normals). I understand now the limitation of the...
but it is still a bug. I can't do my lighting model because the lighting is bugged..
Wait what? it doesn't happen for you? I have Unity 4.5.1f3 How I combine cubes? well, 16x16x256 cubes form one mesh.. I get around 100 draw calls
So is it a bug or not?
So I declare it as a bug. Easy to replicate: Create an empty scene Add one cube Add one Directional Light with rotation 90,0,0 - everything is...