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
6
votes
1 answer

Facebook Share dialog always shows Captcha only on Android

I have a cross platform application (iOS/Android/Web) that has a 'Share' feature. The 'Share' feature works nicely on iOS and Web builds, but on the Android platform Facebook is always showing a 'Security check' captcha to the user before presenting…
Eduardo Coelho
  • 1,953
  • 8
  • 34
  • 60
6
votes
4 answers

No Fog After Build

I've enabled a fog in the render settings on my scene. It works perfectly while testing it on the Unity editor, but after opening the game after building, the fog disappears. I'm not sure but according to some sources on the web, I found out that…
user3616302
  • 61
  • 1
  • 2
6
votes
1 answer

Memory Leak Issue. Eye-tracking in Unity with OpenCVSharp

I've been working on this project for a few months now, where I'm trying to integrate eye-tracking into Unity using OpenCVSharp. I've managed to get everything working, including the actual tracking of the pupil etc, however I've got a memory leak.…
Nition
  • 91
  • 1
  • 5
6
votes
3 answers

Initial Commit: "fatal: could not create leading directories of ..."

I am trying to make the initial commit to a git repository on GitHub for a Unity project. I followed along with this guide to get to where I am. Note: For some reason or another, I couldn't set Unity's Asset Serialization Mode to Force Text, so I…
Cheddar
  • 329
  • 2
  • 3
  • 9
6
votes
2 answers

Unity increases size of imported sprites

I had imported a .png (800 x 294) Size 37.2 KB into unity but after importing it shows it size 0.9MB, which is too large than original. I changed the Max Size for 1024 to 512 in import settings which lowers it resolution from original to 512 x 188…
Khayam Gondal
  • 2,366
  • 2
  • 28
  • 40
6
votes
4 answers

How do I pass variable from one script to another C# Unity 2D?

For example I have a variable (public static float currentLife) in script "HealthBarGUI1" and I want to use this variable in another script. How do I pass variable from one script to another C# Unity 2D?
MickyD47
  • 61
  • 1
  • 1
  • 3
6
votes
3 answers

Is it possible to create 2D animation at run time with Unity ?

I am trying to create an animation at runtime. However, I didn't find the method to do this. Can Unity create it at runtime? What I want to do in web player are following: detect mouse click and get the click position. (flower appear there) decide…
user3467689
6
votes
3 answers

Deep copy of a List

This should be a fairly simple problem to solve however I've tried several ways of doing it but the results are always the same. I'm trying to copy a list containing GameObjects into another list. The problem is it seems I'm copying the references…
user3019217
  • 335
  • 1
  • 5
  • 12
6
votes
1 answer

App tested extensively, also approved by apple, but crashes for all users once in App Store

So we have existing app in app store, made second update for it. Tested extensively with internal dev team, (with both debug and release, and test flight builds) then test team 1, followed by a second test team (that double checks the first test…
CthulhuJon
  • 237
  • 1
  • 7
6
votes
0 answers

UnitySocketIO-WebSocketSharp hangs on a handshake loop using Unity webplayer

I'm using UnitySocketIO-WebSocketSharp to connect with a node.js server. If I run the app on Unity in standalone mode, everything goes well; the handshake happens normally and the websocket runs smoothly. But, if I run in webplayer mode the socket…
Jorge Guberte
  • 10,464
  • 8
  • 37
  • 56
6
votes
1 answer

Architecture of a multiplayer lobby and matchmaking system?

I am looking to design a system where a player can Run the game, hit a button to enter the arena, which will send his IP Address/player profile/network stats up to the server. The matchmaking/lobby server will maintain a collection of all…
mbradber
  • 489
  • 5
  • 17
6
votes
1 answer

Factors that affect FPS on mobile device in Unity

I am developing a simple player shooting game. It worked fine for me. But when I tried deploying it on the device the FPS reduced to almost 3-4FPS. Can anyone list out what are the factors that reduces the FPS in unity game.
Sagar Patil
  • 1,400
  • 15
  • 29
6
votes
4 answers

Unity - Unable to send HTTPS request due to CryptographicException

I'm trying to send an https request to my remote server but I'm always getting the following exception: Exception: System.IO.IOException: The authentication or decryption has failed. ---> System.ArgumentException: certificate --->…
Eduardo Coelho
  • 1,953
  • 8
  • 34
  • 60
6
votes
2 answers

Scale GameObject in Unity

How can I increase / decrease the size of objects in Unity? Example: public GameObject sprite; public float scale = 2.0f; void ScaleResolution() { sprite = sprite*scale; //epic string! }
user3114190
6
votes
1 answer

Augmented Reality SDK for Unity3d

I am Unity developer but new to augmented reality. I want to start with the basic tasks for AR in Unity3D. But I am confused where and what to start with? I have gone through some of the SDKs like metaio, vuforia and D'Fusion. Which SDK is easy to…
Nick
  • 1,035
  • 1
  • 11
  • 18