Questions tagged [unity-game-engine]

Unity is a cross-platform game engine by Unity Technologies. Questions should be about programming with the game engine and not usage of the graphical interface. Questions about the usage of the graphics interface are off topic.

Unity logo

Unity is a game engine, IDE and service suite developed by Unity Technologies. As of 2016 it is the most widely-used game development system.

It targets mobiles, desktops, consoles, web browsers, and VR devices. Unity is used for 3D, 2D and VR/AR. Cloud services include advertising, in-app purchase, and cloud building. The Unity application itself is for both Windows and macOS.

In Unity, components are written in C# and are usually compiled using Mono or IL2CPP.

Major subsystems include PhysX game physics, Mecanim animation, a third-party asset store, and Unity.UI.

Note that although "Unity" is the product name and "unity.com" is the web site, on stackoverflow.com "unity-game-engine" is the tag for Unity.

Latest release: Release 2022.2.9 released on the 3rd of March 2023.

The latest update supports development for the following:

Mobile

  • iOS
  • Android

VR and AR

  • Oculus
  • Google Cardboard
  • Steam VR
  • PlayStation VR
  • Gear VR
  • Microsoft Hololens
  • Daydream
  • Apple ARKit
  • Google ARCore
  • Magic Leap
  • Vuforia

Desktop

  • Windows
  • Universal Windows Platform
  • macOS
  • Linux / Steam OS
  • Facebook Gameroom

Console

  • PlayStation 4
  • Xbox One
  • Nintendo Switch
  • Nintendo 3DS family of systems

Web

  • WebGL

Smart TVs

  • Android TV
  • Apple TV
  • tvOS

Useful links


Related tags

75302 questions
76
votes
6 answers

The "GetReferenceNearestTargetFrameworkTask" task was not found

I have a problem with autocompletion in VS 2017 Community. Previously I had VS 2017 Enterprise from school, but the key expired so I moved to Community. Before, everything works great, but now it doesn't work at all. I found a solution on Stack…
LadIQe
  • 895
  • 1
  • 6
  • 8
71
votes
11 answers

How to Work With Different Screen Resolutions

I'm using Unity 4.3.3 for my game. I'm making a game for Android and iOS devices. Since I'm pretty new to unity, I can't seem to find a way to work with different screen resolution. I'm using c# for my scripts. I want my game to run full screen.…
Ashish Beuwria
  • 975
  • 6
  • 13
  • 17
68
votes
1 answer

How to build Unity3d Plugin for iOS

I have a very tiny Objective-C library built for iOS and I want to export it to Unity. I understand the basic process of writing a csharp wrapper that marshals all the invocations to native library, but I completely have no idea where to start.…
pronebird
  • 12,068
  • 5
  • 54
  • 82
63
votes
4 answers

How to set up unit tests in Unity and fix missing assembly reference error?

I created the following structure: ├── Assets ├── Scenes ├── Scripts │ └── MyExample.cs ├── Tests │ ├── MyExampleTest.cs │ └── Tests.asmdef Now, when I click on Run All, in the Test Runner window, in Unity, I have the following error: The…
HAL9000
  • 3,562
  • 3
  • 25
  • 47
62
votes
5 answers

Unity game manager. Script works only one time

I'm making simple game manager. I have a script, which will be accessible from all scenes in the game. And I need to check values of its variables after loading new scene. But my code runs only once after starting the simulation while an object with…
Amazing User
  • 3,473
  • 10
  • 36
  • 75
60
votes
4 answers

How to Rename a Unity Project?

I want to change the name of a Unity project to something else such that Unity Editor shows the new name at the top or when I open a script using Visual Studio, it shows the new name at the top of VS. How to do that? Does changing the project name…
Kamran Bigdely
  • 7,946
  • 18
  • 66
  • 86
58
votes
1 answer

Unity Export Android 64-bit

I've been trying to upload .abb to the google play console. When I upload it, it gives me this error: This release is not compliant with the Google Play 64-bit requirement The following APKs or App Bundles are available to 64-bit devices, but they…
Elia Schenker
  • 802
  • 1
  • 7
  • 19
55
votes
13 answers

How to get intellisense in Visual Studio Code for Unity functions names?

I am following a tutorial about Unity and I see that the instructor has intellisense when writes the method's name. However I have only intellisense with classes and variables, I mean Unity classes like Rigidbody and my own variables. I have also…
Yone
  • 2,064
  • 5
  • 25
  • 56
55
votes
5 answers

Is it possible to simplify an if-statement that checks for a combination?

I'm currently working on adding sound effects to a game, and although my current code is working fine, I'm looking for a way to simplify it. Basically, each object in the game has a string value indicating its material (ie. "wood", "metal", etc.),…
Coffee Boat
  • 749
  • 6
  • 16
54
votes
2 answers

Why should I use SerializeField?

I have just started to learn C# and Unity, and there is one thing that I can not get used to: Why and when should I use [SerializeField]? Is it bad to leave variables hard coded despite using [SerializeField] and have more text boxes in my unity…
53
votes
3 answers

Why choose UnityEvent over native C# events?

I mean, UnityEvents are slower than the native C# events and they still store a strong reference to the receivers. So, the only valid reason I can find to use UnityEvents over native C# events is their integration with the editor. Am I overlooking…
Adriano Di Giovanni
  • 1,445
  • 1
  • 16
  • 34
52
votes
0 answers

Marching Cubes generating holes in mesh

I'm working on a Marching Cubes implementation in Unity. My code is based on Paul Bourke's code actually with a lot of modifications, but anyway I'm checking if a block at a position is null if it is than a debug texture will be placed on it. This…
Statey
  • 631
  • 5
  • 10
52
votes
6 answers

How do we manually fix "ResourceRules.plist: cannot read resources" error after xcode 6.1 upgrade?

We are having the same issue found here, here, here and here Basically we upgraded to xcode 6.1 and our build are getting the "ResourceRules.plist: cannot read resources" error. We have a Jenkins server that does our ios builds for us. We are using…
Tim
  • 1,191
  • 1
  • 11
  • 11
51
votes
3 answers

Unity3d integration with android

I need to create an android application which consists of parts written on Unity3d (animation and so on) and on AndroidSDK (by androidSDK I mean few activities written in java, manifest and resources) In fact I already have those parts (At least…
leshka
  • 1,764
  • 6
  • 32
  • 42
50
votes
5 answers

Use Unity API from another Thread or call a function in the main Thread

My problem is I try to use Unity socket to implement something. Each time, when I get a new message I need to update it to the updattext (it is a Unity Text). However, When I do the following code, the void update does not calling every time. The…
user6142261
  • 627
  • 1
  • 8
  • 14