Click here to Skip to main content
15,886,017 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 Updated

Unity 

11 Mar 2018 by #realJSOP
It looks like you're assuming that the increment will be the same value you're starting our with, and that's not the case. As Griff already pointed out, the increment will always be 1 (0r 1.0 in your case). If you want to use anything other than an integer increment, you have to use a do/while...
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...
15 Apr 2014 by Abhinav S
These may help -Transform.Translate[^]Video - How to move a gameObject[^]http://answers.unity3d.com/questions/14279/make-an-object-move-from-point-a-to-point-b-then-b.html[^]
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...
15 Oct 2014 by Akhil Mittal
I have a web API controller, and I am using Unity.WebAPI for resolving dependency.Following is my Bootstrapper.cs code, public static class Bootstrapper { /// /// Public method to initialise UnityContainer. /// public static...
13 Mar 2018 by Akhil Mittal
A tutorial to learn dependency injection with the help of a simple example
27 Oct 2020 by AKIM 16
error CS0119: 'FramePerSecond.On_GUI()' is a method, which is not valid in the given context What I have tried: using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine.UI; using UnityEngine; public...
26 Oct 2018 by AleksND
I am using an IEnumerator to change multiple booleans for example (Frozen to be false) public void ChangeStatus(ref bool status) { if(status == true) { TimeDelay(status); } } public IEnumerator TimeDelay(bool status) { yield return new...
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.
14 Nov 2013 by Alexander SchuIze, Felix Herbst, Paul Kirsten
Multi-User game for AIO where players build their own spider's web
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.
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[^]
12 Feb 2024 by Andrew Akram
I have this code here that displays a game object when I press E on the keyboard the only issue is it works with the host and nothing happens when the client interacts with it when he presses E. what is the solution or what I'm doing wrong and...
13 May 2015 by Android on Intel
Face and Head Tracking using the Intel® RealSense™ SDK
31 Jul 2015 by Android on Intel
This Unity resource page on the Intel® Developer Zone is your central location for support of x86 within the Unity game engine.
1 Oct 2015 by Android on Intel
Porting Guide for Unity Game on Intel® Architecture for China Market
30 Oct 2015 by Android on Intel
In this guide we will detail a step-by-step process of building a cross-platform Android application with the help of Marmalade C++ SDK 7.1 and ShiVa3D game engine specifically for Android x86 architecture.
30 Oct 2015 by Android on Intel
This article will show a performance gain with native support on Android and share some tips for increasing performance on Intel® architecture using Hero Sky: Epic Guild Wars as an example.
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.
1 Feb 2016 by Android on Intel
This article describes the best tools and engines to use for game development.
1 Feb 2016 by Android on Intel
This article gives you an overview of the key programming languages used in Android development.
15 Apr 2016 by Android on Intel
Unity Optimization Guide for Intel x86 Platforms: Part 3
15 Apr 2016 by Android on Intel
We will explore two main areas of optimizations in this guide: Scripting and Editor-based.
15 Apr 2016 by Android on Intel
The discussion in this blog will focus on the 2 Atom x3 SoC SKUs which have already been launched: C3200RK and C3230RK.
19 Apr 2016 by Android on Intel
In this guide, we will show a variety of tools to use as well as features in the Unity software that can help you enhance the performance of your Unity project.
19 Apr 2016 by Android on Intel
Unnecessarily high resolution textures can easily become a bottleneck in mobile games and slower hardware
17 Nov 2022 by André Marcos (Advisor), José Cláudio Silva, Victor Lopes
Unity Engine support for Electronic 2D game development
26 Feb 2014 by Ashnikku
I am implementing dependency injection in my project using unity. And to register type i have created another project (LibraryManagement.DIMapping) which has registsered type for all layers(Business, Data) and added its reference in presentation layer. Issue am facing here is how to configure...
2 Mar 2014 by Ashnikku
How to register generic repository in Unity.I am doing thiscontainer.RegisterType(typeof(IRepository), typeof(Repository));But it is not workingThrowing below exceptionResolution of the dependency failed, type =...
13 Jun 2013 by bananadrop
I am wring for asking the how to tracking the specific person after detecting for the interactive floors.We would like to express like a pond which the fishes are in it. When person comes into the scanning zone, some fishes are gathering around the person with gentle wave. Specially, If...
1 Mar 2015 by Bankey Sharma
Some general guidelines to make application source agnostic and business adaptive
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...
28 Oct 2020 by BillWoodruff
The Unity Test Framework package (formerly the “Unity Test Runner”) is a tool that allows you to test your code in both Edit mode and Play mode, and also on target platforms such as Standalone, Android, or iOS . For more information on other...
7 Jun 2022 by Bl4ugr4n4 Bl4ugr4n4
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyVision : MonoBehaviour { private Enemy enemyScript; public GameObject playerCenter; public float range = 5.2f; public float...
16 Jan 2019 by BlackMATov
It's a story on how to write a plugin for Unity Asset Store, take a crack at solving the well-known isometric problems in games, and make a little coffee money from that, and also to understand how expandable Unity editor is. Pictures, code, graphs and thoughts inside.
23 Nov 2015 by BladeLogan
Hello!So my friend is trying to develop a game like Clicker Heroes.& he needs to know what the best way would be to go by when making such a game, would Unity be the best option? Or could he do it in a WPF app in visual studio.What we are trying to figure out is what would be the...
30 Jan 2017 by Brady Kelly
I have a Prism WPF app that uses services to read data from either a web API or directly, via EF. I want to register the services into the Unity container, and am thinking having them singletons is a pretty good idea. There should only ever be one thread using any one service, as it's a desktop...
7 Dec 2014 by brain tees
You should do some search on this site. Its available hereUnity Player Needs Your Permission To Run In Chrome[^]
5 Jul 2023 by Bryce Walker
I'm a beginner learning from youtube. I followed the tutorial code exactly but got this error. error CS1002: ; expected my code: if(!Camera.main) { Debug.Log("Unable to find main camera"); return; } It says the error is at the...
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.
20 Feb 2018 by Byte-Master-101
Now that we got the basics over with, it's time for improvement!
1 Mar 2018 by Byte-Master-101
Neural Networks can do a lot of amazing things, and you can understand how you can make one from the ground up. You can actually be surprised how easy it is to develop one from scratch!
12 Feb 2014 by charles henington
This is an alternative for "Send Mail With Attachment File"
17 May 2017 by Chill Naga
Greetings! I'm at the end of my short text adventure game \ practice and he debugged it as far as I currently think I can. Enough that it lets me play test the thing in Unity. The initial text I put up loads just fine, but none of the keys meant to transition to other scenes with more text...
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...
17 May 2020 by Christian Graus
A 3D scene has more data so you can't take a 2D scene and automatically make it 3D. You could GUESS the depth of objects but you can't be sure. You can GUESS their thickness in different points, but you can't be sure.
22 Jan 2021 by Christian Graus
Clearly the rotate method doesn't know what your variables are called. I think you need to make this your second parameter Unity - Scripting API: Transform.Rotate[^]
18 Jan 2022 by CodeSie Programming
I have tried so many packages, none of them work as WAN. They all just work as LAN and looking it up they say you need to do port-forwarding on your router and all this kind of stuff. In my mind, atleast, it's IMPOSSIBLE this is how an...
29 May 2020 by CodingGreek
I want to learn C # and Unity together but I am new to programming and I would like to know the best ways there are. Maybe a website, videos or even a book that could help me out in anyway. I am new to programming and already I'm understanding a...
6 Apr 2021 by Cody O'Meara
I have been working on a Unity game for a bit. The database is MySql. I want to create a link between the unity server I have and the website server. So I have an array of servers for my game already. I have another server that I installed...
18 Mar 2015 by Colleen Culbertson
This blog is meant to provide information, suggestions, and links for developers using Unity with the Intel RealSense SDK 2014.
8 Mar 2017 by CPallini
I looks there are resources available: Simple TCP/IP Client - Server - Unify Community Wiki[^].
21 Feb 2017 by Cuber01
I am working on a 2D Platformer and I am tring to add mobile controlsI am trying to make it so when you touch on the joystick the player will start shooting.What I have tried:I tried to change all of the input.getAxsis with CrossPlatformInputManger.getAxsis but all it did was make me...
10 May 2021 by cyma_1
HI, I want to test my fps controller game with unity3d, but when connected to remote the character controller head rotation is not working neither in remote device or pc. how to fix this? any help will be grateful. Using unity 3d Version...
22 Jul 2015 by Dave Kreskowiak
Who's "Marcelo"?You cannot address a post like this to a single person in a public forum. The chances of "Marcelo" just coming by and seeing your post are very very remote.If you're talking about some article here on CP, there is a forum at the bottom of every article. Post your query in...
28 Oct 2018 by Dave Kreskowiak
Google for it. No, nobody here is going to make an entire video and share the entire code for you. That's not helping you. That's doing your job for you.
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....
30 Jun 2020 by Dave Kreskowiak
C# is case sensitive. gameObject is not the same as GameObject. Change the "gameObject" your have to "GameObject" and the code might compile.
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 ...
14 Jul 2022 by Dave Kreskowiak
You will not find a fix for this anywhere on the web. This is a problem where you're trying to execute a method or property, "PlayerMovement", on a "PlayControls" object that does not exist. If you're running into this from a book or something,...
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 ...
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.
7 May 2020 by DaveMathews
Using an on-device bot development framework to integrate a chatbot into unity
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.
14 Nov 2017 by David Crow
"I don't know how to solve this error" The error message tells you exactly what to do: use a non-static member to access active.
15 Aug 2016 by David Dimalanta
I tried using this[^] tutorial from the App Guruz website to observe and point out the errors on not showing the leaderboard UI. Not only the codes but also the plugins as well. (see this link[^] below for more info) By the way, i'm using Unity, making games. After I succeeded in showing...
6 Dec 2021 by Denis Hristov
I am trying to make a Sudoku game in Unity3D but I'm currently stuck on the logic behind the game. (checking if all the numbers in the same subgrid, row and column are different) I have been able to get a script that generates the whole grid...
12 Dec 2021 by Denis Hristov
Hey, I'm making this Sudoku in Unity3D project and I'm currently stuck on making the application check whether or not there are duplicate values in the specific row and column where the number has been inputted. I can provide the GenerateGrid...
9 Jan 2015 by developerjm
I'm developing a small 2D game and am looking to make the player bounce off when he is going out of the screen. How can I do this? Thanks!
5 Mar 2016 by devonJones
If I follow a guide i.e on YouTube, lets say they are creating a 2d platformer on for the PC, will it work for an Android aswell?Was thinking of writing the game in C#New to game development!What I have tried:I've tried looking at youtube videos and looking over the comments...
20 Jan 2018 by dolfijn3000
so i was watching this tutorial :PERLIN NOISE in Unity - Procedural Generation Tutorial - YouTube[^] i was looking for a way to create a heightmap in an array. i know this tutorial is made with unity but i tought i just ignore the unity stuf and only pick the stuf i need. it worked realy well...
16 Oct 2014 by Dominic Milano
TheBestSync, a China-based software company focused on integrated software and hardware solutions, entered the Intel App Innovation Contest 2013 (Intel AIC 2013) in partnership with Intel® Developer Zone with the idea of combining game and music technology with an AIO device to create an exciting n
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...
13 Apr 2014 by Duncan Edwards Jones
It turns out I was massively over-thinking or over-engineering this.Instead I add the handler classes to the Unity container using the name of the definition class that the handler handles. Public Shared Function GetNameFromCommandDefinition(ByVal handler As Type) As String ...
28 Apr 2014 by Duncan Edwards Jones
I have a CQRS architecture which, on the query side has a QueryDefinition class and for each of them a QueryHandler class.I had been wiring them up 1-1 in a configuration file but I would rather use some sort of auto-discovery for example the nugget package UnityConfiguration[^]How do I...
29 Apr 2014 by Duncan Edwards Jones
It does work if I explicitly wire up the registrations:- container.RegisterType(GetType(ITaskReadRepository), GetType(Azure.TaskReadRepository)) container.RegisterType(GetType(IClientReadRepository), GetType(Azure.ClientReadRepository)) ...
5 Dec 2023 by Dylin Messick
using System.Collections; using System.Collections.Generic; using UnityEngine; public class sswimmingController : MonoBehaviour { public float swimSpeed = 5f; // Adjust the swimming speed as needed public Transform (leftHandController);...
5 Dec 2023 by Dylin Messick
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SwimmingController : MonoBehaviour { public float swimSpeed = 5f; // Adjust the swimming speed as needed public Transform leftHandController; //...
16 Apr 2014 by Edward J Correia
When Intel put a call out for apps that would transform the way we interface with traditional PCs, Jacob and Melissa Pennock, founders of Unicorn Forest Games, entered their spell-casting game, Head of the Order*, into the Intel® Perceptual Computing Challenge. They took home a top prize.
12 Jul 2023 by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
25 Oct 2015 by Ela-Sep
I tried this :if (Input.GetKeyUp ("space")) { rigidbody2D.velocity = Vector2.zero; rigidbody2D.AddForce (jumpForce); if (rigidbody2D.velocity.y > -0.1 && isFalling == false ) { transform.Rotate (0,...
2 Jan 2024 by Elinor Gal
jkhlkjl';' l' ' ';k;'l' ;k;'k;'l;l';l';jl;jlkhj What I have tried: urtfyu654768789w74356utgyzthrjyukdtyghdtyduydgykdgyedjyd
24 Jul 2017 by EmpireWorld
I needed to define a preprocessor directive, that abstracts some conditions. I want to detect platform File I/O support. So i want to define a preprocessor directive like FILE_IO to detect does this platforms supports or not. I needed a preprocessor directive because i can't use File api on...
27 Sep 2021 by Ethir Pakalela
hi there, This below code works absolutely fine : the DRAG AND DROP function works good. Here when correct image is droped on to its correct place it stays , but how to lock the image once its dropped in its correct position? using...
30 Jan 2017 by F-ES Sitecore
As long as they don't store state in the class itself you should be ok, ie if methods only use variables local to the method.
6 May 2017 by F-ES Sitecore
If you don't know how to define a class in c# and can't discover such a basic thing from google then I don't see how you have the ability to write a game. I'd advise you to get a book on c# and go through it to learn the basics before you try anything more advanced. You can't expect to learn...
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...
1 Jul 2020 by F-ES Sitecore
There are lots of differences between your code and the code in the video so go back and follow it more carefully. Unity has a massive learning curve and trying to learn Unity and c# at the same time is doubly difficult. Copying code blind from...
28 Jul 2020 by F-ES Sitecore
You say you want it to grow and shrink but you don't specify when\how it grows and when\how it shrinks. If you want to grow on Fire2 and shrink on Fire1 then you'll need code like var f1 = Input.GetAxis("Fire1"); var f2 =...