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

how do I extend a class from another script in c# Unity

I'm trying to extend a base class on my player object. player has damage script that looks like this using UnityEngine; using System.Collections; public class Damage : MonoBehaviour { public int health = 100; public virtual void…
Early73
  • 473
  • 3
  • 7
  • 23
6
votes
2 answers

How to upload unity web-player game to Google drive?

I want to know how can i upload my webplayer game to Google drive. I see several game are working on Google drive my games are uploaded to dropbox but i also want to upload on google drive
aflatoon
  • 269
  • 1
  • 2
  • 9
6
votes
2 answers

Unity c# run shell script

Using Unity3D and from editor script trying to run a script in the terminal on osx. When running test.sh from terminal the GDCL application does its thing and then outputs the arguments. But if I run the script from Unity3D editor I only get the…
roady
  • 597
  • 2
  • 6
  • 20
6
votes
2 answers

Unity3d check if user has authorized device camera

I have developed an app with Vuforia for iOS and Android, when the app is run for the first time, the user is prompted to authorize the use of the device's camera. If the user does not authorize the camera, when the user navigates to the "capture"…
Ronny vdb
  • 2,324
  • 5
  • 32
  • 74
6
votes
2 answers

Xcode 6 simulator build missing symbol for _clock$UNIX2003

I'm building a Unity project for an iOS8 simulator. Moving this for Xcode 6 GM for the simulator has resulted in this linker error. Not sure if I'm missing something in the build or something is broken. Any suggestions? The full error is: Undefined…
Culzean
  • 349
  • 3
  • 13
6
votes
1 answer

Co-routine Wrapper not executing callback in a timely manner

Okay so I have a pretty good idea of how to use co-routines in Unity3d but I want to make a reusable component for deferred execution that allows me to take code like this StartCoroutine(WaitForDamageCooldown(DamageCooldown)); IEnumerator…
Terrance
  • 11,764
  • 4
  • 54
  • 80
6
votes
2 answers

How to create a script icon in Unity3D?

I created a scipt and editor for it. Now I want to assosiate an icon with it like this: How to do such thing? Cant find any documentation on this.
Rella
  • 65,003
  • 109
  • 363
  • 636
6
votes
2 answers

Set gravity for LinearLayout programmatically

I have followed an instruction for making new AdMob plugin for Unity. Ads show up correctly, but I have problem with bottom position. They show up at top of the screen. I have set gravity to bottom (for FrameLayout) but banner ads again show up at…
Andrew
  • 163
  • 2
  • 3
  • 10
6
votes
2 answers

How to stop co-routine?

When two co-routines are running, how do you stop the first co-routine? GLOBALS.stableTime = 5; IEnumerator StableWaittingTime () { yield return new WaitForSeconds (1f); if (GLOBALS.stableTime == 0) { …
Sudhir Kotila
  • 687
  • 9
  • 20
6
votes
1 answer

Using FBO to record screen in Android

I'm developing the Android plugin that record Unity gameplay screen.To achieve this, I used OpenGL FBO. Pseudo Code is so simple like this below : // Bind frame buffer as a render target mFrameBuffer.bind(); // Render scene to frame…
knighthedspi
  • 526
  • 5
  • 17
6
votes
2 answers

www.text returning strange value in Unity3D (C#)

I'm using Unity 3D's WWW to make http requests: http://docs.unity3d.com/ScriptReference/WWW.html It seems that no matter what kind of data I'm trying to access, it just returns: ���� every time. I've tried json files, I've tried php that just…
mmm
  • 2,272
  • 3
  • 25
  • 41
6
votes
1 answer

I'm confused about some Reflection code, and looking for insight

I'm developing for the iPhone using C# and Mono's Full AOT technology. According to their Limitations page (link text), unlike traditional Mono/.NET, code on the iPhone is statically compiled ahead of time instead of being compiled on demand by a…
Michael Ryan
  • 479
  • 3
  • 14
6
votes
2 answers

Unity3d Work with memory: load and unload prefabs

I'm really need help! I can't understand how to work with prefabs and unloading. I have the next situation. I run my application on IPad from Xcode. Unity version 4.3.1 Pro. Watch memory using with: Xcode Debug Navigator Xcode Instruments Unity…
madmik
  • 71
  • 1
  • 1
  • 4
6
votes
4 answers

How to add auto-complete for common functions like "Start" and "Update"

Monodevelop can auto-complete code, but it can't auto-complete key functions like Start, Update, FixedUpdate, OnCollisionEnter and so on, as such I often misspell the key functions. Is there a way to add auto-complete or spell-check entries for…
Jonguo
  • 681
  • 1
  • 10
  • 17
6
votes
1 answer

Unity facebook SDK, can not post picture with FB.Feed

In my Unity IOS game, I am unsuccessfully trying to use FB.Feed to share a screenshot on the user's wall. Facebook documentation uses FB.Api to publish the screenshot, but this method does not display a share dialog, it simply uploads the pic to…
Mauro Palumbo
  • 63
  • 3
  • 5