Questions tagged [unity3d]

Unity is a cross-platform game engine by Unity Technologies.

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 if any on game objects are written in C#, 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 "Unity3D" is the tag for Unity.

Latest release: Release 2020.2 released on the 15th of December 2020.

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
  • tvOS

Useful links


Related tags

57890 questions
538
votes
15 answers

How to use Git for Unity3D source control?

What are best practices for using Git source control with Unity 3D, particularly in dealing with the binary nature of Unity 3D projects? Please describe the workflow, what paths would be included in .gitignore, what settings should be set in Unity…
PressingOnAlways
  • 10,144
  • 4
  • 27
  • 48
226
votes
28 answers

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here you can see the missing functionality: As seen, the transform object does not open the…
CorbenDalas
  • 2,423
  • 2
  • 7
  • 7
177
votes
2 answers

How to prepare a Unity project for git?

What are the steps necessary to prepare a Unity project for committing to a git repository eg. github? I don't want to store unnecessary files (specially temp files and avoid binary formats as much as possible).
German
  • 9,885
  • 4
  • 37
  • 53
143
votes
7 answers

How does StartCoroutine / yield return pattern really work in Unity?

I understand the principle of coroutines. I know how to get the standard StartCoroutine / yield return pattern to work in C# in Unity, e.g. invoke a method returning IEnumerator via StartCoroutine and in that method do something, do yield return…
Ghopper21
  • 9,299
  • 7
  • 53
  • 83
115
votes
9 answers

Serialize and Deserialize Json and Json Array in Unity

I have a list of items send from a PHP file to unity using WWW. The WWW.text looks like: [ { "playerId": "1", "playerLoc": "Powai" }, { "playerId": "2", "playerLoc": "Andheri" }, { …
dil33pm
  • 1,313
  • 2
  • 10
  • 17
89
votes
4 answers

How to detect click/touch events on UI and GameObjects

How to detect UI object on Canvas on Touch in android? For example, I have a canvas that have 5 objects such as Image, RawImage, Buttons, InputField and so on. When I touch on Button UI object Then do something. Each button do different process when…
Dennis Liu
  • 1,576
  • 2
  • 15
  • 29
87
votes
5 answers

what is the difference between Update & FixedUpdate in Unity?

What is the difference between the Update and FixedUpdate methods, and when should these methods be used?
Kapil11
  • 1,025
  • 1
  • 7
  • 6
83
votes
11 answers

not finding android sdk (Unity)

Error: Invalid command android UnityEditor.HostView:OnGUI() CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. C:/Program…
Salman Khan
  • 857
  • 1
  • 8
  • 15
76
votes
11 answers

What Language is Used To Develop Using Unity

What language does one need to use when programming with Unity? Or is it an API for many languages? I read through the docs and I guess I missed the point on the language used. It says it has iOS deployment, would this still allow the programmer to…
some_id
  • 28,294
  • 58
  • 173
  • 293
72
votes
1 answer

"A namespace cannot directly contain members such as fields or methods"

I am trying to use this code for NET.reflector using Reflexil. I am trying to replace code with this: if(Input.GetKeyDown(KeyCode.Keypad5)) { int i = 0; Character localPlayer = PlayerClient.GetLocalPlayer().controllable.GetComponent();…
user3204732
  • 733
  • 1
  • 5
  • 4
71
votes
1 answer

How to resolve SmartFoxServer connection error in unity

I'm using SmartFoxServer API on Unity3d. It was working fine before I recovered my MacBook, but now gives a connection error as below: Http error creating http connection: System.Net.Sockets.SocketException: Connection refused at…
Muhammet Demir
  • 1,773
  • 4
  • 18
  • 39
71
votes
3 answers

Ignoring folder meta files on version control

Unity creates and deletes meta files for folders inside the Asset folder. That can create an annoying situation when using version control (that you can skip and go to the questions): someone creates a folder of files that will be ignored but forget…
Roberto
  • 10,365
  • 14
  • 49
  • 63
68
votes
5 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
  • 815
  • 1
  • 6
  • 8
68
votes
2 answers

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.…
Ben Affleck
  • 11,374
  • 5
  • 50
  • 74
66
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
  • 925
  • 6
  • 12
  • 17
1
2 3
99 100