Click here to Skip to main content
15,867,453 members
Everything / Game Development / Unity

Unity

Unity

Great Reads

by Akhil Mittal
A tutorial to learn dependency injection with the help of a simple example
by Byte-Master-101
In Part 2, the Neural Network made in Part 1 is tested in an environment made in Unity so that we can see how well it performs.
by Alexander SchuIze, Felix Herbst, Paul Kirsten
Multi-User game for AIO where players build their own spider's web
by Joel Ivory Johnson
In this article I take a look at setting up a system for HoloLens development, the compatibility of the applications with other UWP platforms, and introduce Unity for making a 3D application

Latest Articles

by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
by André Marcos (Advisor), José Cláudio Silva, Victor Lopes
Unity Engine support for Electronic 2D game development
by OwenDavies
Installing a desktop environment and setting up RDP to allow us to connect to our Virtual Machine
by DaveMathews
Using an on-device bot development framework to integrate a chatbot into unity

All Articles

Sort by Score

Unity 

13 Mar 2018 by Akhil Mittal
A tutorial to learn dependency injection with the help of a simple example
19 Feb 2018 by Byte-Master-101
In Part 2, the Neural Network made in Part 1 is tested in an environment made in Unity so that we can see how well it performs.
14 Nov 2013 by Alexander SchuIze, Felix Herbst, Paul Kirsten
Multi-User game for AIO where players build their own spider's web
16 Jun 2016 by Joel Ivory Johnson
In this article I take a look at setting up a system for HoloLens development, the compatibility of the applications with other UWP platforms, and introduce Unity for making a 3D application
16 Oct 2017 by IAmJoshChang
Adding new bandit enemy
12 Jul 2023 by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
10 Oct 2017 by IAmJoshChang
Going through the Unity Ball tutorial
7 Nov 2017 by IAmJoshChang
How to run Google Cardboard on an Android Device in Unity
29 Nov 2015 by MatthewThomas
Adding design time support for regions in Prism 6
18 Dec 2015 by Md. Marufuzzaman
This tip shows you an easy way to split Microsoft SQL Server table row data.
10 Oct 2017 by IAmJoshChang
How to create weapon ammo in Unity
30 Nov 2017 by IAmJoshChang
How to set up Google Spatial Audio in Unity
10 Oct 2018 by Vangos
During the past few months, I have been heavily experimenting with the Intel RealSense D415 & D435 depth camera. Today, I am going to show you how to easily transform between different coordinate systems. RealSense D415/435 is a low-cost device....
5 Dec 2014 by Nabeel Saleem
Some ways to fix unity webplayer issue in chrome
2 Sep 2015 by Dave_Voyles
With the advent of WebGL and asm.js, developers can now harness much of the power of their computing device from within the browser and access markets previously unavailable.
2 Sep 2015 by Afzaal Ahmad Zeeshan
First of all you need to understand the basic different between them so that you can choose which one to use in your case. First of all, Unity3D is a gaming engine and Xamarin is a cross-platform application development framework. Although there purpose is same, but their functionality and...
6 Jun 2017 by Nick Tziamihas
In this article, we show how you can execute asynchronous code on the main thread without async, by replicating Unity's coroutine framework.
13 Oct 2017 by IAmJoshChang
How to create Victory state after we defeat all enemies
18 Oct 2017 by IAmJoshChang
How to create a time score system in Unity
30 Oct 2017 by IAmJoshChang
How to implement the high score system
2 Nov 2017 by IAmJoshChang
How to set up the Google Cardboard in Unity
17 Nov 2017 by IAmJoshChang
How to create a VR first person shooter II
19 Nov 2017 by IAmJoshChang
How to create a VR first person shooter - III
30 Nov 2017 by IAmJoshChang
How to use the Daydream controller with our FPS
7 May 2020 by DaveMathews
Using an on-device bot development framework to integrate a chatbot into unity
12 Aug 2023 by OriginalGriff
Spelling: it matters!public Transform spawnPoint; Vector3 spawnPos = spwanPoint.position;
12 Nov 2015 by Alvin Ashcraft
Open source software (OSS) development has reached the mainstream .NET community and created a whole new customer segment for development tools. Microsoft has responded to this need by creating the Visual Studio Community Edition.
10 Oct 2017 by IAmJoshChang
How to create AI movements for enemies in Unity
10 Oct 2017 by IAmJoshChang
Survival Shooter - tutorial I
10 Oct 2017 by IAmJoshChang
Going through the Unity space shooter tutorial
10 Oct 2017 by IAmJoshChang
How to use a real gun model in Unity
17 Oct 2017 by IAmJoshChang
How to add a new tank enemy
18 Oct 2017 by IAmJoshChang
How to spawn new enemies in Unity and deal with "Ghost" colliders
24 Oct 2017 by IAmJoshChang
How to save and load data in Unity
7 Nov 2017 by IAmJoshChang
How to get our FPS game running in VR
15 Nov 2017 by IAmJoshChang
Creating a VR first person shooter I
1 Mar 2015 by Bankey Sharma
Some general guidelines to make application source agnostic and business adaptive
2 Jun 2015 by Paulo Zemek
Breaking changes and Unity
2 Sep 2015 by rashidebad
Unity-vs-Xamarin[^]
19 Oct 2016 by BillW33
As Richard MacCutchan said, there is far to much involved for a novice to figure out in that project. I recommend that you start with a limited subset of your project. First figure out how to get audio from the microphone. Remember, Google is your friend, you can find a lot of basic information...
10 Oct 2017 by IAmJoshChang
How to shoot with a gun in Unity
12 Oct 2017 by IAmJoshChang
How to fix Game Object Collider in Unity
27 Jan 2019 by Vangos
Today, I would like to introduce you to the Orbbec Astra sensor and the Nuitrack body-tracking SDK. This is an in-depth tutorial for software developers who would like to use a new depth sensor and a new body-tracking SDK to develop amazing motion applications.
24 Feb 2019 by Vangos
Azure + HoloLens = Mixed Reality to the Cloud!
21 Jul 2019 by Richard MacCutchan
Quote: UnityException: RandomRangeInt is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'wall' on game object 'Wall'. You are trying to use it in your instance initializer: private int...
28 Jan 2020 by Dave Kreskowiak
This is why it's important to properly indent your code. As a beginner, I would NOT put the curly braces on the same line as what's being defined. Put them on the next line so you can easily see which opening and closing braces should line up with each other. In C#, all code MUST be in a class....
29 May 2020 by OriginalGriff
Start of by learning C# first - ignore Unity until you have the basics done and properly sorted in your head. A course is the best idea - check locally, you may find evening classes - or a book if that isn't available (Wrox, Addison Wesley, and...
23 Nov 2021 by OriginalGriff
Look at your code: Instantiate(audioObj, transform.position, transform rotation); ^ | I'm pretty certain that should be a '.' not a space ... ...
17 Nov 2022 by André Marcos (Advisor), José Cláudio Silva, Victor Lopes
Unity Engine support for Electronic 2D game development
5 Dec 2023 by Dave Kreskowiak
variable names cannot have parenthesis in them, so get rid of the parenthesis: public Transform leftHandController; // Reference to the left hand controller public Transform rightHandController; // Reference to the right hand controller ...
12 Feb 2014 by charles henington
This is an alternative for "Send Mail With Attachment File"
30 Apr 2013 by Keyhole Software
How to write games with Unity 3D in JavaScript in C# - Part 1
28 Feb 2014 by Member 10618996
Resolution of the dependency failed, type = "StudentManagement.IBusiness.ILoggManager", name = "(none)".Exception occurred while: while resolving.Exception is: InvalidOperationException - The current type, StudentManagement.IBusiness.ILoggManager, is an interface and cannot be constructed....
11 Apr 2014 by Duncan Edwards Jones
HiI am using Unity and want to map my handler classes to the query definitions they handle e.g.:- Public Shared Sub RegisterTypes(container As IUnityContainer) Dim interfaceType As Type = Nothing 'Get the interface definition for the generic query handler...
21 Aug 2014 by Manoj Kumar Choubey
Dear all I would like to make application with the combination of web api controllers and mvc controllers both I installed following nuget packages1. unity.mvc43. unity.webapi4. webapiand I want to impliment dependency injection but I am having problem with dependency...
29 Nov 2014 by mark zuck
whenever i am trying to run my unity webplayer game in chrome, i am getting this error and after refresh it stuck and never plays.does any one have an idea what should i do ?
14 Jul 2015 by David Catuhe
The babylon.JS team at Microsoft recently released a new update (v2.1) with a host of new and improved tools to build browser-based 3D experiences. In this article, I’ll walk you through some of the major updates, along with links to demos and sandbox builds you can try yourself.
30 Sep 2015 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself.Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null -...
23 Oct 2015 by alex_lviv
In this article, I will try to describe my vision on creation of simple 3-layer application based on .NET technologies.
4 Nov 2015 by Patrice T
There no possible solution to your question the way you ask it.Look at the snipset of code you provided ! It is a joke !You don't show what update() is doing, and you don't show what you do with is. This and nothing is the same.[update]By removing theses 3 little lines that are...
1 Dec 2015 by Android on Intel
Intel recently teamed up with Unity Technologies, maker of the Unity game development engine, to offer a fun contest that gave game developers an opportunity to build their games with native x86 support for Android using Unity 5.
1 Feb 2016 by Android on Intel
We recently spoke about these topics with some of the game developers who won our joint contest with Unity Technologies.
10 Mar 2016 by leon de boer
You have invoked spawn within the call of spawn.Your code goes fully reentrant .. creating objects every one to two seconds infinitely on top of each other ... HENCE THE FLASHINGLook at your hierarchy tab you get ever increasing numbers of spawnHere is you code step by step1.)...
19 Apr 2016 by Android on Intel
Unnecessarily high resolution textures can easily become a bottleneck in mobile games and slower hardware
23 Apr 2017 by OriginalGriff
Either you wrote it - in which case you already know what to do - or you found it on the internet and don't understand how it works. And since this is your homework, you would be better off writing your own so you do understand how it works, and what you need to do. Either way, just dumping...
17 May 2017 by ZurdoDev
From the comments, we found that your Text object named "text" in the code was not initialized. Since you declared it as Public it will show as an item in the Script properties in the main Unity Window. Drag and drop your Text object from the Canvas in the hierarchy into the Text property in...
19 Jul 2017 by Satya Prakash Swain
Kudan has AR SDKs and Unity Plugin. Yes, eu.kudan.androidar is a package in android and and "KudanAR" is name of class.
18 Aug 2017 by Jochen Arndt
The ter variable has been already declared with a different type. It looks like a typo in this line: TerrainData ter = ter.terrainData; It should be TerrainData terData = ter.terrainData; because you are using a terData variable afterwards.
27 May 2018 by IAmJoshChang
How to rotate a Vector and move in the direction the player is facing in Unity
10 Aug 2019 by RickZeeland
See example here: Grouping objects in the Hierarchy? - Unity Answers[^]
27 Nov 2019 by OriginalGriff
Please don't repost the same question - five days ago you posted the same thing: C# maths game (unity)[^] which shows that you have done nothing in the meantime to even try to get started. While we are more than willing to help those that are stuck: but that doesn't mean that we are here to do...
22 Jan 2020 by F-ES Sitecore
Ensure your account has access to the D;\ drive. If you are creating a project directly in the root of the D drive, or have anything that creates files in the root of the D drive then make sure it doesn't, always work in sub-folders and sometimes access to the root can be blocked. If you don't...
22 Jan 2020 by phil.o
Trying to write anything at the root of a drive will be problematic on any recent Windows version; better create a directory on the D: drive and write your files in it instead.
10 Feb 2020 by Pete O'Hanlon
I edited your question so that it had indentation. When I did that, the issue became immediately apparent - after the InitializePurchasing method, you close the class off. You need to remove the extra } from there and move it to the end of the file.
6 Apr 2020 by OriginalGriff
Indexes in C# run from 0 to N - 1 inclusive, where N is the number of items in the collection. So if your have 5 elements in an array arr, say, then valid indexes would be arr[0] arr[1] arr[2] arr[3] arr[4] Any other value as an index (i.e....
28 Jul 2020 by Sandeep Mewara
Object reference not set to an instance of an object � This error happens when you try to use a property or call a method of an object that is null. More details: here[^] � A simple use of Visual studio DEBUGGER can tell you the object because of...
2 Aug 2020 by Sandeep Mewara
Here, have a look: Unity - Scripting API: Physics.Raycast[^] Physics.Raycast returns a boolean type. You have assigned that to variable of type RaycastHit and thus the error. It straight away returns true if the ray intersects with a Collider,...
26 Oct 2020 by Richard MacCutchan
void OnGUI() { float fps = 1 / Time.deltaTime; OnGUI.Label(fpsRect, "FPS: " + fps); } You are trying to use OnGUI as a property reference inside a method that you have named OnGUI, which does not make sense.
27 Oct 2020 by F-ES Sitecore
The class that exposes the Label method is called just "GUI", not "OnGUI". void OnGUI() { float fps = 1 / Time.deltaTime; GUI.Label(fpsRect, "FPS: " + fps); } "OnGUI" is the name of a function that is called when...
9 Mar 2021 by Richard MacCutchan
See Xamarin.Essentials - Xamarin | Microsoft Docs[^], but you need to be a reasonably experienced programmer.
6 Apr 2021 by Chris Copeland
This is an example of distributing databases and having them synchronise. It's a common practise for applications with enormous user bases (ie. YouTube) to optimise for speed, by having multiple databases available for reads and writes, and...
18 May 2021 by Dave Kreskowiak
You keep doing this: cameras (currentCamera).enabled ... when cameras is a collection, and you need to use its indexer like this: camera[currentCamera].enabled ...
18 Dec 2021 by Ron Nicholson
I have used unity a little bit. So take this with a grain of salt. You are only instantiating an object when your random number is 0, in both cases. How many object will be created at one time. will you have up to 15 objects or only the two? ...
22 Dec 2021 by OriginalGriff
First off, C# is case sensitive: so Movement is not the same as movement. You first example code uses both, so one of them will be wrong: Movement Move; ... void Start() { Move=GetComponent(); } The second example tells the...
11 Jul 2022 by Gerry Schmitz
It's "GameObject"; not GameObjekt. Unity - Manual: Important Classes - GameObject[^]
25 Sep 2022 by OriginalGriff
If you got the code from a YouTube video, then go back there and ask him. Chances are that it never worked; that he doesn't know why; that he can't fix it - so he won't reply. In that case, dump it, and look for better code that does. Remember,...
28 Oct 2022 by OriginalGriff
That's a really inefficient way to do it: a List maintains an internal array which when it it full it allocates and copies into an new array twice the size. That's way, way more efficient than what you are doing - have a look here and see how...
16 Oct 2019 by Simon Jackson
Hints, tips and advice for working well with Android in Unity
24 Feb 2023 by Richard MacCutchan
Well a quick count down to line 56 reveals: else (collision.gameObject.Comparetag=="end") Which is obviously incorrect, as the part after the else is a conditional expression. It should be: else if...
24 Feb 2023 by OriginalGriff
To add to what Richard has - rightly - said ... You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a...
4 Mar 2023 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a...
13 Aug 2023 by Andre Oosthuizen
This seems to be an issue all over, have a look at these 2 links which has some kinds of solutions - "Installing..." is taking forever, unity hub[^] Unity Hub SDK and NDK tools download freeze[^]
13 Sep 2023 by 3DARVR ds
using System.Collections; using System.Collections.Generic; using UnityEngine; public class QuizManager : MonoBehaviour { public List QnA; public GameObject[] options; public int currentQuestion; public Text...
3 Sep 2023 by FreedMalloc
The error message tells you exactly what is wrong. It can't find a thing called 'Text'. It even asks if you're missing a using directive. The video you referenced even shows the using statement you need being added when the object is added on the...
3 Sep 2023 by sathishKumarsubramani1
Add "Using UnityEngine.UI" and it resolves the issue. Hope you have the correct version of UnityEngine refrence. Link :https://docs.unity3d.com/2017.3/Documentation/ScriptReference/UI.Text.html
31 Dec 2023 by OriginalGriff
You get an index out of range error when you try to access an array element which doesn't exist. In C#, arrays are zero based, so an array of N elements with have valid indexes between 0 and (N - 1) only: an array of three elements such as this:...