Skip to main content

Questions tagged [unity]

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.

Filter by
Sorted by
Tagged with
111 votes
2 answers
42k views

Divinity: Original Sin 2 has a beautiful see-through system. When I go behind walls, a splash mask will appear, and when I move around the game, it changes. It's like a dissolve shader, and has a ...
Seyed Morteza Kamali's user avatar
109 votes
6 answers
188k views

I am developing my first 2D game in Unity and I have come across what seems an important question. How do I handle data between scenes? There seems to be different answers to this: Someone mention ...
Enrique Moreno Tent's user avatar
93 votes
3 answers
16k views

In my latest game I'm making, you can slice a 2D object arbitrarily, demonstrated in this gif: You can continuously cut it into hundreds or thousands of pieces. This doesn't create a lot of lag, ...
Garflington's user avatar
81 votes
13 answers
115k views

I've gotten a lot of answers to this question, but they are all generic and generally not very useful. None of the tutorials talk about aspect ratio and dealing with mobile devices and there are a ...
Michael's user avatar
  • 911
79 votes
10 answers
248k views

I have seen several videos and tutorials for creating singleton objects in Unity, mainly for a GameManager, that appear to use different approaches to instantiating ...
Zack Brown's user avatar
76 votes
1 answer
25k views

In my game I need to create dynamic water puddles but I cannot find a tutorial that shows how I can make such an effect (an example of which is shown below). How can I do it?
Seyed Morteza Kamali's user avatar
69 votes
1 answer
12k views

Quantum Break has this fantastic particle effect, it's a distortion effect like broken glass. I want know how I can replicate this effect? You can see it below, and a full video is available on ...
Seyed Morteza Kamali's user avatar
65 votes
6 answers
64k views

We are doing our school project with Unity3d, since they were using Shiva the previous year (which seems horrible to me), and I wanted to know your point of view for this tool. Pros: multi platform, ...
jokoon's user avatar
  • 5,253
49 votes
4 answers
18k views

I have been using Unity to create a 2D game which will be completely offline (which is the problem), the game-play needs you to enter certain strings at certain levels and Unity compiles to DLLs, ...
TheBinaryGuy's user avatar
45 votes
2 answers
11k views

I am trying to write an ice shader in Unity that looks good and at least semi-realistic. If the following shot (found on Google) was CG, what would its shader include? (the foreground cave). I might ...
Daniel's user avatar
  • 3,471
43 votes
4 answers
19k views

As it is said here : Time.time The time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game. And as I know the time is stored in float. So, my ...
Yaroslav's user avatar
  • 771
42 votes
1 answer
4k views

I read in Unity's path-finding documentation that they use convex polygons because there won't be any 'obstruction' between 2 points. Then they add their vertices as nodes along with starting and ...
Rany's user avatar
  • 473
42 votes
4 answers
75k views

I have a level generation algorithm that is computationally heavy. As such, calling it always results in the game screen freezing. How can I place the function on a second thread while the game still ...
DarkDestry's user avatar
  • 1,441
40 votes
7 answers
46k views

Just wondering how games such as Tap titans and Cookie Clicker handle such large numbers. I am trying to implement an idle game however the largest number format supported by C# is decimal. I am ...
MathHelp's user avatar
  • 419
38 votes
8 answers
19k views

I prefer OOP features when developing games with Unity. I usually create a base class (mostly abstracted) and use object inheritance to share the same functionality to the various other objects. ...
modernator's user avatar
  • 1,223
38 votes
2 answers
13k views

I am trying to get a character to move like a spider: Given a rising slope which a ball would normally not be able to roll up, the spider would slowly crawl up. Similarly, given a mid-air rectangular ...
pyko's user avatar
  • 493
37 votes
3 answers
69k views

If an indie game developer makes more than $100,000 using the free version of Unity, what happens to the money that goes over $100k? How will Unity people come to know how much money they are making? ...
USERX2DX's user avatar
  • 499
35 votes
9 answers
28k views

We have a big game project using Unity at school. There are 12 of us working on it. My teacher seems to be convinced it's an important tool to teach students, since it makes students look from the ...
jokoon's user avatar
  • 5,253
34 votes
6 answers
88k views

While using Unity I export an Android game as an APK. When the APK is run, the first thing that is displayed is the Unity splash screen. I worked out that I could replaced that image by opening the ...
David Dimalanta's user avatar
33 votes
4 answers
17k views

I'd like to write a game completely in C#. In my search for an engine, I found Unity3D, but all the tutorials and documentation are speaking about a visual editor and the Unity IDE in which you click ...
Ray's user avatar
  • 633
32 votes
2 answers
40k views

Before Unity Hub, it used to be the case that if you opened up a project that was from an older version, you would be prompted to upgrade the project. I am now on the latest Unity Hub 2.0.0 and I am ...
PixelCake Games's user avatar
31 votes
7 answers
13k views

I have a Unity project without any version control, and I need to share it with another developer so that both of us can work on the project. What strategies should be use that play nice with Unity ...
Dr. Snoopy's user avatar
  • 5,115
31 votes
3 answers
144k views

The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?
DJMcMayhem's user avatar
30 votes
2 answers
73k views

I'm working on a game which requires me to draw a few lines from a single point that is more formally said Given point A with coordinates x,y I draw n lines where the i-th line has the coordinates ...
Christo S. Christov's user avatar
30 votes
6 answers
44k views

Having read this heated question about Unity vs. UDK vs. ID something, I'm curious to know: what the repeatedly-hit, most crippling limitation(s) of Unity? In order to keep this question non-...
ashes999's user avatar
  • 11.3k
29 votes
5 answers
47k views

I'm confused about these two methods in the Unity framework. Both make the player object move, stop, change direction, etc. When should one be used over the other and when is one appropriate?
Robert's user avatar
  • 614
29 votes
1 answer
7k views

I've downloaded a bunch of (free) 3d warriors with animations. I've noticed for about 25% of them, the 'run' animation physically moves the character forward in the z direction. For the other 75%, the ...
ineedahero's user avatar
29 votes
3 answers
96k views

I'm starting to learn Unity for 2D development. So, I am importing several sprites into the game, and I couldn't help but notice that there is a "pixels to units" property, by default on ...
Saturn's user avatar
  • 1,763
28 votes
2 answers
21k views

I'm making a low poly stylized kind of game. I have a terrain with some water, and I want lots and lots of trees; I have 10,000 trees mass placed, at the moment. Each tree consists of no more than 200 ...
mr-matt's user avatar
  • 2,779
28 votes
8 answers
37k views

Does anyone have an algorithm for creating a sphere proceduraly with la amount of latitude lines, lo amount of longitude lines, ...
Daniel's user avatar
  • 3,471
27 votes
8 answers
12k views

Some time ago I started working with Unity and I still struggle with the issue of tightly coupled scripts. How can I structure my code to avoid this problem? For example: I want to have health and ...
K.L.'s user avatar
  • 795
27 votes
4 answers
30k views

What is the procedure followed by game programmers for saving and resuming game state? like files/mappings. I want to save it for tower defense game and I am using unity3D game engine.
Syed 's user avatar
  • 959
26 votes
7 answers
9k views

I get that sometimes you need properties, like: public int[] Transitions { get; set; } or: ...
piojo's user avatar
  • 602
26 votes
3 answers
33k views

What's the different between this int randomNumber = UnityEngine.Random.Range(0, 10); and this ...
H. Pauwelyn's user avatar
26 votes
4 answers
11k views

I have a 3D model of a turret that con rotate around the Y-axis. This turret has a cannon that is significantly off the center of the object. I want the cannon, not the turret, to aim at a specified ...
Franconstein's user avatar
26 votes
2 answers
7k views

I am a Game Developer and did not study Mathematics. So I only want to use Quaternions as a tool. And to be able to work with 3D rotation, it's necessary to use Quaternions (Or Matrixes, but let's ...
OC_RaizW's user avatar
  • 1,480
26 votes
2 answers
54k views

IL2CPP is a Unity-developed scripting back-end which you can use as an alternative to Mono when building projects for some platforms. Note - IL2CPP is only available when building for the following ...
Muhammad Faizan Khan's user avatar
26 votes
4 answers
6k views

I've been looking at some screenshots from games like Rocket League and FIFA: and I started wondering one would achieve the short-cut grass effect. Is it a shader? Is it actual geometry? Or just ...
Daniel Holst's user avatar
26 votes
2 answers
4k views

Context I am continuing some legacy code for a game in Unity3d, and I want to write some functional tests meant for regression, to ensure I don't break things when implementing new things or when ...
Xavi Montero's user avatar
  • 1,083
25 votes
9 answers
17k views

What's the best place for tutorials & other learning resources for unity3d?
25 votes
5 answers
93k views

I have an enemy with this structure: Enemy Body Head Arm Left Arm right ...and so on. I also have a collider for each part of the body. In my "Enemy" object I've attached a script, and in ...
stighy's user avatar
  • 477
24 votes
5 answers
14k views

I am just a beginner in 3D games, my preferred platform is Android. I posted a question in some other forum about "What to use: OpenGL or Unity3d?" They all emphasized Unity3D and using its built-in ...
Aman Grover's user avatar
24 votes
1 answer
6k views

I have read about this pattern several times (from a best-practices perspective): Memory Allocation: Instead of instantiating the new object on the fly, always consider creating and using object ...
Muhammad Faizan Khan's user avatar
24 votes
5 answers
42k views

How can I make extremely huge terrains in Unity? It seems like I can set width and length to large values. But the Heightmap resolution only goes up to 4097 and the Detail resolution only goes up to ...
Daniel's user avatar
  • 3,471
24 votes
4 answers
10k views

What are the benefits of a wall being as a plane or as a box? Should I use a plane with a box collider instead of mesh collider?
Pichi Wuana's user avatar
23 votes
4 answers
10k views

I'm making an FPS game where, even when a target's whole body is behind a wall or box, but its finger or foot exposed, the AI should be able to detect it and shoot its finger. So far the way I've ...
BrucePai's user avatar
  • 347
23 votes
1 answer
45k views

As of API 26, Android uses something called adaptive icons. When targeting API 25 and lower, my app's icon looks fine: But when targeting API 26+, it shows up in a white circle like so: How can I ...
Evorlor's user avatar
  • 5,891
23 votes
4 answers
13k views

I am making a game using the Unity game engine and I want to save the player's progress including level, experience points, chosen character, etc. Presently I am using PlayerPrefs but I want to know ...
Shantanu Singh's user avatar
23 votes
2 answers
10k views

I'm looking for a solution for a "Right Click Options" behaviour. Basically any and every item in a game, when right clicked, can display a set of options based on whatever the object is. Right ...
Mike Hunt's user avatar
  • 341
23 votes
1 answer
38k views

I have a spell system I am creating, the principle is as follows: Each spell is an autonomous prefab. It contains a script with some properties (base damage, duration...) that can be modified in the ...
nialna2's user avatar
  • 930

1
2 3 4 5
335