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
2 answers

Duplicated Animations between prefabs

I got two and more instances of the same prefab in a scene. Every one of them has an animator, and every one of them has the same animator controller connected to it. When I animate one of them, all of them get the very same animation. Any clues on…
Duobix
  • 81
  • 1
  • 3
6
votes
3 answers

how to compile and run vuforia sample code for iOS

I have download the Vuforia SDK and Sample Code from given website but it is giving file not found http://www.qualcomm.com/solutions/augmented-reality
Gourav Dixit
  • 191
  • 3
  • 7
6
votes
1 answer

Reference.svcmap: Could not load file or assembly Microsoft.Practices.ServiceLocation, Version=1.0.0.0

I have a simple webforms website project. The project uses Microsoft Application Block Unity 3.5 (DI Container) added via NuGet. Now I am using this 3rd party web service. After I add Service Reference and build I get this: Error 19 …
gbs
  • 7,196
  • 5
  • 43
  • 69
6
votes
1 answer

Download, hack, and reupload APK file to Google Play. Is it possible?

I've developed my first Android app in Unity3D and uploaded it to Google Play. And I've just realized: There are services to download apk files from Google Play. There are services to decompress apk files and get all the source files from it. Is it…
Alex
  • 129
  • 1
  • 2
  • 15
6
votes
4 answers

Error: You are not allowed to remove the Unity splash screen from your game

I'm trying to run my Unity game in Xcode. When 'Device SDK' is configured in the Unity iOS player setting, everything is fine. But when I switch to 'Simulator SDK' (to use the iOS simulator), the following error occurs in Xcode on startup of my…
Boris
  • 8,551
  • 25
  • 67
  • 120
6
votes
4 answers

Xcode Archive Is Too Large

I have a Unity3D project that I've already released for iOS via Xcode. Previously the archive size was about 30-40Mb which I'm happy with. I've now changed a few things within the Unity project, and rebuilt it for Xcode. Now when I archive it, the…
Oliver Jones
  • 1,420
  • 7
  • 27
  • 43
6
votes
1 answer

How to make custom inspector add object reference in Unity

I cannot figure out how to make a texture field appear in my custom inspector and the documentation explains little to nothing on how to do it. I have a script that has an Icon field with a texture type in my main script however need to write it…
Luke
  • 83
  • 1
  • 1
  • 4
6
votes
2 answers

4.6 New UI How to change Button Image?

Everything I search is based on the old UI. I've tried the following button.image = Resource.Load("..."); button.GetComponent() = Resources.Load("...."); button.GetComponent
Mastro
  • 1,477
  • 2
  • 22
  • 52
6
votes
4 answers

unity3d (2d!) - Camera to centre on player, but never exceed "map" bounds

I am creating a game which has up to 4 orthographic cameras (for up to 4 players), which take up various amounts of the screen, depending on the amount of players. I have a script which controls all the cameras, setting their position relative to…
LairdPleng
  • 948
  • 3
  • 9
  • 28
6
votes
1 answer

kinect v2 joint orientation to unity3d quaternion

i'm trying to move an avatar using Unity3D according to the data coming from Kinect V2, the problem is when i apply multi joint orientations to the unity Slerp transform, how can i calculate the new quaternion which allows me to Simulate the…
Wael hamadeh
  • 755
  • 1
  • 6
  • 14
6
votes
1 answer

Activating and deactivating game objects in unity

So below you will find a short snippet of code. What this code does is it allows the player to hit the 'p' key to pause the game and when this happens a gui pops up and the players look and movement controls are disabled. My problem is with…
Jonah Starling
  • 539
  • 6
  • 20
6
votes
3 answers

API Error Code 1383146 in Facebook Canvas API for Unity while making payment

I have implemented payments in my Unity app and have defined products in HTML form in my server, and have crawled them with FB's debug tool. The products are identical to Facebook's payments example apart from pricing and naming, as well as the…
6
votes
2 answers

unity doesn't show preview

My question is quite simple. I am learning Unity and watching a tutorial about making a 2D game. In the tutorial, there is a Preview section at the bottom right corner. But in my Unity, there is nothing there. There is Inspector on the right and…
kalahari
  • 895
  • 5
  • 15
  • 34
6
votes
2 answers

Why is Unity crashing when I press play in the editor?

My game is crashing whenever I switch scenes and then press play in the editor. I am using this code to switch scenes: ... I have tried disabling most of the scripts in my game to debug the problem but it freezes every time. I've also tried…
LooMeenin
  • 818
  • 3
  • 17
  • 33
6
votes
1 answer

Unity Custom window with side by side tabs

I am creating a custom window editor in unity, and I can't get multiple tabs to load side by side when I click on the menu item. This is what I have gotten so far: This is how I would like it to look when it loads: Here is what I am doing to get…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338