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

How to write a web-based music visualizer?

I'm trying to find the best approach to build a music visualizer to run in a browser over the web. Unity is an option, but I'll need to build a custom audio import/analysis plugin to get the end user's sound output. Quartz does what I need but only…
6
votes
1 answer

What is this programming method called? And is it bad?

Lately in my Unity projects, I have discovered that to create a more modular application it helps to have a static List in a class that contains references to all or some of the objects created so that they may be accessed easily from other parts of…
6
votes
2 answers

Saving to Google Play Cloud Save Automatically

BACKGROUND I'm working on an android game that has been published on Google Play Store. And now I'm planning to add Cloud Save feature as an update. (FYI: I'm using Unity and Play Games plugin) PROBLEM After hours of research and experiment, I'm…
6
votes
3 answers

Avoiding collision between particles and collider in Unity

I have an arbitrarily large number of things shooting particle systems at each other. I want the particles to hit the targets but not the origin objects. Is it possible to either: Use IgnoreCollision between a ParticleSystem and a Collider Define…
Mispy
  • 879
  • 8
  • 21
6
votes
1 answer

Unity Camera panning when zoomed in/out

I have this method which pans the camera forward/back and left/right. I am not sure why, but what is causing the camera to move nice when zoomed in close to the terrain but move really slow when zoomed out? Here is how I am panning the camera: void…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
6
votes
1 answer

Loading Grid using coroutines - wait until finish,

One of the scripts on my scene involves creating a grid of cubes. The process does take a fair amount of time and I've been trying to implement it without causing Unity to become unresponsive. The code at present - works to effect - you can watch as…
user1662292
  • 137
  • 1
  • 2
  • 12
6
votes
1 answer

Read and parse a Json File in C# in unity

Here is the code using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.IO; public class csharpfile:MonoBehaviour{ public void LoadJson() { using (StreamReader r = new…
abhishek
  • 63
  • 1
  • 1
  • 8
6
votes
2 answers

Wheel Collider Unity: after adding torque the vehicle starts moving sideways

I really killed few hours to try to fix this, Googling for a solution, but I could not. I've got a vehicle, it's a go-cart, so there are no suspensions (technically there are, but the values are close to 0, to simulate the tires). The vehicle has a…
Erik Putz
  • 329
  • 3
  • 4
  • 14
6
votes
1 answer

How to pass Json array to WWWform as field in unity

I want to pass three field in wwwform, which contain two single value and a json array. Here is my Json: { "Fname":"Abc", "Lname":"Xyz", "Marks": [{"MarksA":"23","MarksB":"65" }, {"MarksA":"24","MarksB":"56" } ] } My current…
Lalit Kumar
  • 146
  • 1
  • 6
6
votes
1 answer

How to hide InputField additional input box in unity3d

I use a FiledInput in android app and when I starting to put string in it a softkeyboard pops up and a box, I want to get rid of it. Is it any way to do so using Unity3d 4.6.2f1 ?
dev-masih
  • 4,188
  • 3
  • 33
  • 55
6
votes
3 answers

Unity: Use HTTP PUT in Unity3D

I'm quite new to Unity and facing some problems about RESTFul in Unity. I want to update some data on the server by using HTTP PUT, but as what I received when search the web, the WWWW class in Unity doesn't support HTTP PUT. I also tried some…
Brian Pham
  • 551
  • 9
  • 23
6
votes
4 answers

High memory allocations when unregistering delegates from event in C#

We are developing a game with the Unity3D engine (which uses Mono for user code - our code is written in C#). The scenario is that we have a class exposing an event, with around ~ 250 registrations to that event (each level object on the game's map…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
6
votes
2 answers

Unity 5: Clean way to manage dynamically created GameObjects

In Unity 5, what is "clean" way to manage dynamically created game objects? I've written a component (MonoBehavior) that creates/destroys several GameObjects. The objects are loaded as part of custom customization system that selects portions of…
SigTerm
  • 26,089
  • 6
  • 66
  • 115
6
votes
2 answers

Passing a byte array from Unity C# into a C++ library method

I have a C++ library method that I'd like to call from a Unity C# script. I understand there are three key steps. First, to declare the C++ methods to be extern "C". Second, to use [DllImport('foobar')] before the corresponding C# extern method…
Ghopper21
  • 10,287
  • 10
  • 63
  • 92
6
votes
4 answers

Any way to bring Unity3d to the foreground?

I have sent my user out to the browser with Application.OpenURL. And now I want to programatically bring unity back to the foreground. Is there any way to do it without a plugin? Thanks.
peterept
  • 4,407
  • 23
  • 32