Click here to Skip to main content
15,892,809 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 Title

Unity 

30 Jan 2020 by Oleg Pruh
Hi, I work in Unity 2018.4.16f1 (64-bit). Today I had to build my project in Grudle, but there is a problem. Help me as soon as possible. Please do not write much, but to understand, you can write a solution step by step. 1 exception was raised by workers: See the Console for details. ...
30 Jan 2020 by Richard MacCutchan
java.lang.RuntimeException: Duplicate class com.unity3d.ads.BuildConfig found in modules classes.jar (:UnityAds:) and classes.jar (:unity-ads:) Duplicate class com.unity3d.ads.IUnityAdsListener found in modules classes.jar (:UnityAds:) and classes.jar (:unity-ads:) Duplicate class...
2 Aug 2020 by Hand Cubing
I tried to add Raycast for shooting by following a tutorial on youtube but I still get 2 CS0029 Error Messages the first one saying Assets\Shooting.cs(19,30): error CS0029: Cannot implicitly convert type 'bool' to 'UnityEngine.RaycastHit' ...
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,...
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.
17 May 2020 by User 14475602
I have made a puzzle in 2d scene and now I want to put it in complete 3d scene. Is that even possible? How can I do that? In 3d scene, I want to put it where is visible and the player can access it with key on keyboard or somehow like that. Put...
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...
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...
1 Jan 2020 by swamy456
// HTEditorTool v2.0 (MArs 2013) // HTEditorTool library is copyright (c) of Hedgehog Team // Please send feedback or bug reports to the.hedgehog.team@gmail.com using UnityEngine; using System.Collections; using UnityEditor; public class HTEditorToolKit{ public static Texture2D...
1 Jan 2020 by Member 14704891
Change exemple myTexture.set_name("Color Texture by Hedgehog Team"); to myTexture.name = "Color Texture by Hedgehog Team";
12 Feb 2014 by charles henington
This is an alternative for "Send Mail With Attachment File"
7 Oct 2014 by Praveen Dselva
I have A Interfacepublic interface ICountryDataService { void CountryDataService_Save(ICountry country); }And implement in a Classclass CountryDataService : DataServiceBase, ICountryDataService { public CountryDataService() { } ...
1 Feb 2016 by Android on Intel
This article describes the best tools and engines to use for game development.
23 Oct 2021 by ThunderWiring
I'm building a C++ plugin for a Unity Android app. The plugin is using OpenCV and specifically i need to load a caffe model by using: cv::dnn::readNetFromCaffe(path to model files) Problem is, the plugin is a dll file, so what is the...
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.
18 Jun 2014 by Ngo Thanh Tung - Softech
How to use the Unity container to add support for dependency injection to a real-world application
18 Feb 2018 by swamy456
using UnityEngine; using UnityEngine.UI; using System.Collections; using Facebook.Unity; using System; using System.Collections.Generic; using Facebook.MiniJSON; public class FaceBookManager : MonoBehaviour { List readPermission = new List () { "public_profile", "user_friends",...
24 Feb 2019 by Vangos
Azure + HoloLens = Mixed Reality to the Cloud!
14 Dec 2017 by swamy456
#pragma strict var target : Transform; function Start () { } function Update () { if(target.active){ gameObject.transform.position.x= target.transform.position.x; gameObject.transform.position.z= target.transform.position.z; } } What I have tried: #pragma strict var...
13 Dec 2017 by Richard MacCutchan
Transform does not appear to have such a property according to Unity - Scripting API: Transform[^].
14 Dec 2017 by phil.o
You could try: GameObject targetObject = target.gameObject; if (targetObject.activeSelf) { // ... } and targetObject.SetActive(true /* or false */); Also, the code block you showed is not well formed, you have an else statement outside of any function nor related to any if statement. I...
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...
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...
29 Nov 2015 by MatthewThomas
Adding design time support for regions in Prism 6
10 Mar 2016 by Member 12376177
I'm attempting to create a script which allows me to randomly generate platforms infront of my character and the code is:using UnityEngine;using System.Collections;public class SpawnScript : MonoBehaviour{ public GameObject[] obj; public float spawnMin = 1f; public...
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.)...
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.
2 Jun 2015 by Paulo Zemek
Breaking changes and Unity
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...
4 Sep 2018 by Numan Doğruay
Hello guys. I'm trying Asset Bundle Build via command line and i can do. With this code: Object[] selectedAssets = Resources.LoadAll("Prefabs"); Object[] videos = Resources.LoadAll("Prefabs"); Debug.Log(bundlePath); Object obje = new Object(); ...
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...
20 Jan 2018 by Graeme_Grant
Had a quick look at Google Search and there is plenty of information for you: C# calculate perlin noise[^] * Understanding Perlin Noise[^] * Improved Perlin Noise Implementation in C# · GitHub[^] UPDATE: For 2D, there is an answer using the Google Search above: c# - 2D Perlin Noise - Stack...
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...
27 Sep 2021 by Pete O'Hanlon
There are many ways you could achieve this. You could, for instance, maintain a HashSet of animals that have been dragged like this:private HashSet _draggedAnimals = new HashSet Having done this, you would need to do two...
5 May 2016 by Member 12417202
Hey. I've started learning Unity and I've been following this tutorial pretty much line for line in the code, but this specific line doesn't seem to work at all.GetComponent().AddForce(input * moveSpeed);This should make the character move, but it doesn'tHere's the...
2 Apr 2020 by sOwlO
Hello, I am working on my first 2D game in Unity. And I have some struggles with camera, which seems lagy. It is like micro lags, when camera is folowing the players, sometimes. Should it be, because I used it in Update method? My code looks...
2 Apr 2020 by Gerry Schmitz
Use Stopwatch to narrow things down. Stopwatch Class (System.Diagnostics) | Microsoft Docs[^]
27 Apr 2021 by OriginalGriff
No. Nobody here is going to provide you with credit card information or do this for you. Instead look to see if you can find an "prepaid debit card" that you can apply for.
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...
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...
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...
25 Sep 2019 by Noshair Farooq
I am using the Image Target Detection example from AR Core SDK. I want to change the color of the object at runtime through script. A material is attached to that object. // Create an anchor to ensure that ARCore keeps tracking this augmented image. Anchor anchor =...
7 Apr 2020 by Oleg Pruh
CommandInvokationFailure: Gradle build failed. D:/JDK\bin\java.exe -classpath "D:\STOP\Editor\2017.4.36f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain...
7 Apr 2020 by Member 14795952
Guy your date and time is wrong change it and go on with building your stuff
17 Aug 2015 by sdsoft.comze.com
i am trying to save gamesdata in file but in gives error cannot Convert GameData to System.To.Stream Severity Code Description Project File LineError CS1503 Argument 1: cannot convert from 'GameData' to 'System.IO.Stream' Assembly-CSharp-vs GameControle.cs 43......... Help Me ...
16 Aug 2015 by George Jonsson
Try to change your GameData class and use public properties instead.[Serializable]class GameData{ public bool IsGameStartedFirstTime { get; set; } public bool IsMusicOn { get; set; } public int HighSchore { get; set; } public bool[] Levels { get; set;...
1 Apr 2015 by Herman<T>.Instance
Hi Everyone,I have a small issue but cannot figure out to get it working.I have a windows Service and each minute it does some tasks.To test if I can store all my exceptions in memory (and later send them to a database as soon as a disconnect db is connected again).In the class holding...
27 Nov 2019 by Member 13925784
So I am creating a maths game, I've started the simple functions etc however when coming to providing the user with a correct and incorrect screen I've become confused. The user will be provided with a equation which they have to create a diagram to equal that equation. So where I'm stuck is...
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...
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...
5 Mar 2016 by Per Söderlund
Yes it will work on android as well.You can read about it at their website.Unity - Multiplatform - Publish your game to over 10 platformsBut I think you have to do manual coding for touch.Not sure if there are presets in the editor, like mouse and gamepads (sensitivity,gravity...
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...
23 Nov 2015 by Richard MacCutchan
See https://msdn.microsoft.com/en-us/games-development-msdn.aspx[^].
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.
29 Oct 2018 by Patrice T
Quote: In unity 5, Did you know about "How to make Crossword Puzzle in unity?" for mobile and can you share the video, step by step, and script for me? The help you want is someone doing your job. Think about hiring a professional programmer. He will do anything you want as long as you pay him....
6 Feb 2019 by IAmJoshChang
How to add power-up upgrade into the game
10 Oct 2017 by IAmJoshChang
How to use Real enemy asset from the Unity Asset Store
10 Oct 2017 by IAmJoshChang
How to create AI movements for enemies in Unity
10 Oct 2017 by IAmJoshChang
How to use a real gun model in Unity
10 Oct 2017 by IAmJoshChang
How to shoot with a gun in Unity
10 Oct 2017 by IAmJoshChang
How to create weapon ammo in Unity
12 Oct 2017 by IAmJoshChang
How to create Player Health System and Health UI in Unity
10 Oct 2017 by IAmJoshChang
Going through the Unity Ball tutorial
12 Oct 2017 by IAmJoshChang
How to fix Game Object Collider in Unity
13 Oct 2017 by IAmJoshChang
How to create Victory state after we defeat all enemies
16 Oct 2017 by IAmJoshChang
Adding new bandit enemy
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
10 Oct 2017 by IAmJoshChang
Going through the Unity space shooter tutorial
18 Oct 2017 by IAmJoshChang
How to create a time score system in Unity
24 Oct 2017 by IAmJoshChang
How to save and load data 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
7 Nov 2017 by IAmJoshChang
How to run Google Cardboard on an Android Device in Unity
7 Nov 2017 by IAmJoshChang
How to get our FPS game running in VR
14 Nov 2017 by IAmJoshChang
How to add basic VR changes into our FPS
15 Nov 2017 by IAmJoshChang
Creating a VR first person shooter I
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
30 Nov 2017 by IAmJoshChang
How to set up Google Spatial Audio in Unity
10 Oct 2017 by IAmJoshChang
Survival Shooter - tutorial I
27 May 2018 by IAmJoshChang
How to implement movement in Google Daydream
27 May 2018 by IAmJoshChang
How to rotate a Vector and move in the direction the player is facing in Unity
27 May 2018 by IAmJoshChang
How to add an outline effect on game objects
27 May 2018 by IAmJoshChang
How to apply the outline effect on our Ball game object
27 May 2018 by IAmJoshChang
We spent the past 2 days looking at how we can create an outline effect on our game object, now it’s time to move on to the fun part. Implementing the ability to throw game objects!
27 May 2018 by IAmJoshChang
Picking up and throwing objects in Unity
27 May 2018 by IAmJoshChang
How to create a menu in Unity
27 May 2018 by IAmJoshChang
How to write code to interact with Menus in Unity
27 May 2018 by IAmJoshChang
How to implement Menu scrolling in Unity
27 May 2018 by IAmJoshChang
How to create a menu that stays in your screen in Unity
6 Feb 2019 by IAmJoshChang
How to go about adding sound effects into our game
6 Feb 2019 by IAmJoshChang
How to create a magnet power up
6 Feb 2019 by IAmJoshChang
Infrastructure to write the magnet power up