Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33715

Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.

1 vote
Accepted

Continuous translation in Unity

I dont have access to Unity right now to test it, but the script would look similar to this: float speed = 1.0f; public void Update() { Vector3 newPosition = transform.position + (Vector3.forward * …
K.L.'s user avatar
  • 795
6 votes
Accepted

DontDestroyOnLoad() doesn't work in Unity

Your object itself isn't explicitly destroyed by Unity. But its parent may very well be destroyed. It is to be expected that when an object is destroyed, all of its children are destroyed too. …
K.L.'s user avatar
  • 795
1 vote
2 answers
2k views

Android split build - manual obb file download necessary?

I have an apk built with Unity 5.0.1 that has over 50MB. … Google Play does not accept files over 50MB so I have to make a Split Build as covered in the Unity manual: http://docs.unity3d.com/Manual/android-OBBsupport.html Now it says that I need to download the …
K.L.'s user avatar
  • 795
27 votes
8 answers
12k views

How can I avoid tight script coupling in Unity?

Whats the preferred alternative to interfaces in Unity? How do I fix this problem? I found this, but it tells me what I already know, and it does not tell me how to do that in Unity! … All in all I feel those are written for people who came to Unity with a game design background who just learn how to code, and there is very little resources on Unity for regular developers. …
K.L.'s user avatar
  • 795
3 votes
2 answers
6k views

DontDestroyOnLoad() doesn't work in Unity

I have a problem with DontDestroyOnLoad() in Unity. It does not work! …
K.L.'s user avatar
  • 795
1 vote
1 answer
1k views

Lighting changes when loading scene

I am using Unity 5.0.1. This effect does not happen on mobile devices. …
K.L.'s user avatar
  • 795
1 vote
3 answers
3k views

Unity rigidbody2d.velocity jumping causes weird bouncing

Im working on a game 2d game that has some platforming. I followed this video as guidance and produced the following code: public class PlayerControler : MonoBehaviour public float maxWalkingSp …
K.L.'s user avatar
  • 795
0 votes

Unity rigidbody2d.velocity jumping causes weird bouncing

I found what was wrong, maybe it will help future visitors. This line of code caused problems: rigidbody2D.velocity = new Vector2 (rigidbody2D.velocity.x, verticalInput * jumpForce); While this on …
K.L.'s user avatar
  • 795
1 vote
0 answers
635 views

Why does occlusion culling have a negative performance impact on Gear VR in Unity 5.4.03f?

I am making a GearVR game using Unity 5.4.03f and Oculus Utilities for Unity 5. I have problem with Occlusion Culling. I've set appropriate objects as static and baked the data. … I tried looking online for solutions, but this is supposed to be an old bug that was fixed back in Unity 5.1.X. Any ideas? …
K.L.'s user avatar
  • 795
0 votes

Change Camera Contrast in VR Game

You could duplicate object that you want do render with different colours/brightness and place them in seperate layers. Then you set each of the cameras to ignore one of the layers (layer culling). B …
K.L.'s user avatar
  • 795
6 votes
1 answer
14k views

Efficient billboarding sprites in Unity 5

What's the most efficient way to do billboarding sprites in Unity 5? I want to make a forest of sprite trees in 3d space. Those sprites need to face the camera at all times. …
K.L.'s user avatar
  • 795
6 votes
2 answers
7k views

How to write testable MonoBehaviour and test scripts in Unity?

I had problems with decoupled scripts and exposing interfaces in Unity, and these answers helped me a lot. … What is more, I can't mock out anything from the Unity API. I found a great blog post by Tomek Paszek. He suggests using the Humble Object pattern, and it seems reasonable. …
K.L.'s user avatar
  • 795
1 vote
0 answers
2k views

How to fix artifacts when using equirectangular 360 panorama photo on sphere [duplicate]

I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and south pole). …
K.L.'s user avatar
  • 795
8 votes
4 answers
3k views

How does creating 2d game assets differ from regular 2d art? [closed]

Mostly I'm interested in using 2D in Unity, perhaps with an isometric view (so called 2.5D) …
0 votes
5 answers
8k views

Too much animation work for 2d characters. Creating 2d character animations by prerendering ...

How would I go about that in Unity? Where could I learn about that approach? … Does the "project zomboid method" fit my needs (trying it out only to find out it doesnt work would be a waste of time) and if it does, how do I do that in Unity. …
K.L.'s user avatar
  • 795