Click here to Skip to main content
15,888,461 members
Everything / Unity3D

Unity3D

Unity3D

Great Reads

by LLLLGGGG
In this article, I am going to explain how to generate a hexagonal tessellation and how to draw it in Unity 3D
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
by IAmJoshChang
Attacking enemies, health system and death animation in Unity
by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.

Latest Articles

by EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
by Grasshopper.iics, Abhishek Nandy, Moumita Das
Virtual Reality with Unity, Intel Edison and MQTT
by Dev Leader
How to get all the painted tiles on a TileMap when building a 2D game in Unity3D
by DaveMathews
Using an on-device bot development framework to integrate a chatbot into unity

All Articles

Sort by Title

Unity3D 

4 Jan 2015 by developerjm
Has anyone every experienced a problem when viewing the whole game in .exe file that is generated when building the game?I'm am developing a small game part of a project and programmed the game in free aspect. Now When an .exe file is generated, the game isn't shown full, part of the game is...
28 Sep 2015 by kozmikadam
Hello everyone ,I have a school project , so i'm looking some info for this.We should be make a 3D scene , and we should be add some 3D components , like house , car , human etc. with drag and drop. Or maybe we can select from a catalog. Also some components should have some animation...
13 Oct 2015 by KarstenK
You best stick to OpenGL because it is the most widely spread technology, but it is hard to learn. You must learn about matrices, porjection and vectors mathematics and some strange commands.Here is a good starting point: Learning Modern OpenGL.Invest some time in learning as reading or...
18 Nov 2013 by Frank R. Haugen
Question/problem:I would like a kind of "version control" -system that looks for file-changes and saves copies, so that I don't have both backups and go back and "undue" the projects steps; or branch out from an earlier point in the project.Background:I've started developing in Unity3d,...
18 Nov 2013 by Dave Kreskowiak
This sounds like the standard functionality of any version (source) control server. Examples include SVN, Git, CVS, Mercurial, TFS, and many others.
18 Nov 2013 by Frank R. Haugen
http://beanland.net.au/AutoVer...
2 Mar 2015 by Android on Intel
This document walks through the steps to produce a fat APK that includes both x86 and ARM libraries from within the latest Unity 4 or Unity 5 versions.
16 Mar 2021 by Member 15044276
I'm trying to align 2 game objects using their respective center points at runtime in Unity. The goal is to center my new generated object (SKY) to my map (terrain) which represents the center of my scene. What I already achieved is: create my...
10 Oct 2017 by swamy456
using UnityEngine; using System; using System.Collections; public class Player_Script : MonoBehaviour { // player name public string Name; public TypePlayer type = TypePlayer.DEFENDER; public float Speed = 1.0f; public float Strong = 1.0f; public float Control = 1.0f; private const float...
4 Mar 2021 by Member 15090272
Hi, I'm programming in C# for Unity. My goal is to find certain nodes in my XML file based on the attribute("ftProtect", "ftWarn","ftWarn2"), create new files and put the datasets (content) in there. For each attribute all datasets...
4 Mar 2021 by #realJSOP
Build a proper entity (model) in your app, and let the xml serializer handle the nasty stuff...
12 May 2014 by Simon Jackson
Unity 5 is fast approaching it being with it a whole heap of new features, some obvious, some not so obvious. If you haven’t seen what’s coming publicly in Unity 5, check out the feature preview shown at Unite 2014. There are however a few behind the scenes changes …
12 Mar 2014 by andry fajar
Please help me,I've been approached frustrated how to serial communication arduino uno with unity web player? can i see an example of the source code?
12 Mar 2014 by Vedat Ozan Oner
The only direct way to communicate with an Arduino is via serial communication.for Arduino see:Serial[^]an example:Serial example[^]on computer side (.net):SerialPort[^]There are some other ways using Arduino shields:Ethernet shield[^]orWifi shield[^]You can find...
7 Mar 2015 by Member 11506784
I use this code in my Unity game, and i get this error:are you missing a using directive or an assembly reference?I don't know what to do. Can anyone help me? Here's my code:using UnityEngine;using System.Collections;public class WhiteFadeTrigger : MonoBehaviour { public...
7 Mar 2015 by Richard MacCutchan
You are obviously missing a using or assembly reference. Look at the line where the message occurs and ensure that you have included the reference and using statement for that class's assembly. If you do not understand what that means then check out...
3 Feb 2021 by aitanar
using System; using UnityEngine; using UnityEngine.UI; namespace UnityStandardAssets.Utility { [RequireComponent(typeof (Text.))] public class FPSCounter : MonoBehaviour { const float fpsMeasurePeriod = 0.5f; private...
3 Feb 2021 by OriginalGriff
[RequireComponent(typeof (Text.))] Remove the dot. Dot in C# is a separator - the system is expecting you to supply a qualified type such as "Text.myclass" which doesn't exist. [RequireComponent(typeof (Text))]
29 Jun 2023 by Dave Kreskowiak
In C#, an assignment uses one =, while an equality comparison uses two, ==.
29 Jun 2023 by Sandeep Mewara
If you debug, you will see the error is being raised from: void Update() { currentTime -= 1 * Time.deltaTime; if (currentTime = 0) { OnEnemyspawn(); } } This is because you have written currentTime = 0 in the if...
29 Jun 2023 by Eric Taylor 2023
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyTimer : MonoBehaviour { public float currentTime = 0f; public float startingTime = 10f; public delegate void Enemyspawn(); public...
2 Jul 2023 by Graeme_Grant
I don't do Unity, however, that error in C# usually means that you have not initialised the class before using it. Somewhere in your code you need to create a reference: private OceanE oceanE; and then initialise it: OceanE = new oceanE(); ...
2 Jul 2023 by Sandeep Mewara
As error shares, you are calling a non-static item as a static. You can solve this by: Option 1: Have OceanE as static class such that you can directly access it's properties. This depends on the design choice. Option 2: Initialize OceanE...
2 Jul 2023 by Eric Taylor 2023
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering.HighDefinition; public class Floating : MonoBehaviour { public Rigidbody rb; public float depthBefSub; public float...
24 Feb 2019 by Vangos
Azure + HoloLens = Mixed Reality to the Cloud!
4 Feb 2016 by Simon Jackson
Be careful of those SPECIAL names 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.
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...
14 Nov 2016 by Simon Jackson
    For my sins, I was asked back to FutureDecoded again this year to give a talk on the Microsoft UWP platform, specifically about bringing games to the XboxOne using UWP.  By all accounts the session went well (especially as there was standing room only by the time the …
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(); ...
27 May 2020 by Sidharth Shanmugam
I have a fairly large CSV dataset, around 13.5MB and with approximately 120,000 rows and 13 columns. The code below the "What I Have Tried" section is the current solution that I have in place. Luckily, as I am running this via a Unity...
27 May 2020 by #realJSOP
I wrote an article for CSV importing that you may find useful - CSV/Excel File Parser - A Revisit[^]
27 May 2020 by Patrice T
Quote: this current solution takes 31 minutes and 44 seconds to read the entirety of the CSV file. As far as I understand, the problem is not reading the csv, the problem is what you do with it. Show a sample CVS with 2 rows and what should go...
11 Apr 2014 by Sepehr M
hi there...sry i have a question about unity in 2d mode ...if u know help me....in fact i have some scorpion sprite sheets from mortal kombat in diffrent motions(idle,walking,jumping,ducking,etc)..how can i use all of the motions?should i load all of them at the same time? if yes..how can i...
16 Apr 2014 by thatraja
Get a book like thisLearning C# by Developing Games with Unity 3D Beginner's Guide[^]orBrowse web
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...
18 Jul 2022 by Member 11391151
I want to call function from other script but the game objects defined are not loaded.And gives error NullReferenceException: Object reference not set to an instance of an object My code..i am calling executemyoperation() function..It does calls...
5 Aug 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 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[^]
7 Jan 2021 by Blake Burnell
I am new to programming on c#, I have been watching a 3 and a half hour tutorial and up to this point everything was going smooth. The error message says "There is no argument given that corresponds to the required formal parameter 'force' of...
7 Jan 2021 by Gerry Schmitz
ForceReceiver.AddForce(Vector3...
7 Jan 2021 by Richard MacCutchan
Quote: I have been watching a 3 and a half hour tutorial Probably a waste of time. Download a copy of .NET Book Zero by Charles Petzold[^], which is an excellent learning resource.
15 Jan 2018 by Mir Usmanov
So, I am trying to create a stealth game and to do that I created enemy and attached box with box collider component and IsTrigger is checked to the eyes of the enemy so that cube serves as vision and whenever a player enters that trigger, the enemy starts going after the player. The problem is...
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...
8 Oct 2019 by Koco Mojsov
Dear CodeProject members, I found my self in a dead-end situation where I have to re-develop my software using new tech. My non-game software has elements of 3D in a few views which roughly represents 30-40% of the software for mobile devices (iOS and Windows). We used ActionScript3 with Away3D...
30 Sep 2019 by Gerry Schmitz
Try them both. However, having tried them both, I found Unity less "entangling" (regarding connectivity and licensing). So, try it first. There's also more Unitty samples for c# / Visual Studio. Unreal may be more polished, professional and complex. Unity has "form controls". Not sure about...
30 Sep 2019 by Serge Desmedt
Hi, There is also urho[^] from Xamarin. Depending on the structure of your applcation it might be interesting because it allows you to use regular platform views also in your application. At least that is what the documentations says. I haven't used it yet.
8 Oct 2019 by Stylianos Polychroniadis
Another option would be Godot 3d engine (https://godotengine.org/). Also, my own OpenGL 3D graphics platform (NthDimension 3D HMI) shall be released soon. Designed originally for non-game applications but rather for scientific and engineering visualizations it supports trends, charts and a...
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;...
30 Oct 2020 by Member 11391151
I am using several coroutines as following Script1: Reads an input values that are x,y,z etc. passes x and there values to script2 for execution one by one Script2: a function receives that values and checks for each if it is x with positive...
2 Oct 2020 by George Swan
I am not sure what you are trying to do exactly but it seems to me that the switch statement can be simplified. You are checking that ivalue is not zero in every case. Why not test for ivalue==0 just once on the first line of the method and...
30 Oct 2020 by Member 11391151
Everything is going fine in my code but during the yield return new WaitForSeconds(0.2f); other codes are executed .And i dont want that.
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[^].
24 Apr 2014 by Simon Jackson
Creating E-Learning Games with Unity – A Review
15 Jun 2017 by Vinothkumar Arputharaj
This article will show how to create a mixed dimension (2d+3D) application on HoloLens and switch between 2D and 3D views
10 Oct 2017 by IAmJoshChang
How to create an enemy
10 Oct 2017 by IAmJoshChang
Attacking enemies, health system and death animation in Unity
10 Oct 2017 by IAmJoshChang
Finish attacking the enemy and walking sounds in Unity
10 Oct 2017 by IAmJoshChang
Adding shooting, hit, and more walking sound effects!
10 Oct 2017 by IAmJoshChang
Creating Player Health System and Health UI in Unity
10 Oct 2017 by IAmJoshChang
Fixing Game Object Collider in Unity
12 Oct 2017 by IAmJoshChang
How to create game over UI in Unity
10 Oct 2017 by IAmJoshChang
How to create game over UI in Unity
10 Oct 2017 by IAmJoshChang
How to create the Game End state and Game Over animation
10 Oct 2017 by IAmJoshChang
How to create a spawning system for enemies in Unity
11 Oct 2017 by IAmJoshChang
How to create waves for spawning system in Unity
14 Oct 2017 by IAmJoshChang
How to add missing audio, UI, and create enemy victory state
10 Oct 2017 by IAmJoshChang
Going through the Unity Space Shooter - tutorial II
10 Oct 2017 by IAmJoshChang
Going through the Unity Space Shooter
10 Oct 2017 by IAmJoshChang
Survival shooter - tutorial II
10 Oct 2017 by IAmJoshChang
How to create a VERY simple first person shooter
10 Oct 2017 by IAmJoshChang
How to create a character in a first person shooter
10 Oct 2017 by IAmJoshChang
How to set up a weapon
23 Jan 2016 by Simon Jackson
10 May 2017 by Simon Jackson
Developing games for Cystic Fibrosis treatment – Getting started with Fizzyo
26 Feb 2014 by Member 10628960
Hello Developers!I want my unity3d (android) app to not take inputs from secondary input touch, i.e.bool status = AndroidInput.secondaryTouchEnabled();should always return "false". I know it is a "readonly"..I'm getting it sometimes true and sometimes false, randomly. How do I...
23 Sep 2015 by Simon Jackson
Review of two AR/VR book resources to enable devs to jump on the reality train
26 Apr 2022 by Antonio_Rodrigues
I don't know why, but the error are in the returns. public class funcoes : MonoBehaviour { int testSumArray(int[] numbers = null, int b = 2) { numbers = new int[] { 8, 3, 9, 6, 7, 4 }; int conta = 0; for(int i =...
26 Apr 2022 by Dave Kreskowiak
You can Google this all you want. You'll never find the answer, and you don't need to. You just need to look at your own code. Where do you define the return type of a method? What does that say? | | v int testSumArray(int[] numbers = null,...
26 Apr 2022 by Patrice T
Don't know what you intend to do with this code, but here is a possible correction : public class funcoes : MonoBehaviour { int testSumArray(int[] numbers = null, int b = 2) { numbers = new int[] { 8, 3, 9, 6, 7, 4 }; int...
1 Dec 2017 by Richard MacCutchan
First result from Google: 'Utils' does not contain a definition for 'GetTexture2DFromByteArray' · Issue #259 · googleads/googleads-mobile-unity · GitHub[^].
8 Jul 2021 by HardykMahendru
Hey, I have written a wall running script but whenever I am trying to attach it to the main player, it shows this error : - Can’t Add Script - The script don't inherit a native class that can manage a script. What is it about and how can I...
8 Jul 2021 by OriginalGriff
If you don;t understand an error, the first thing to do is google it: Can’t Add Script - The script don't inherit a native class that can manage a script. - Google Search[^] 2.7 million hits on that one error message ... follow a few links, and...
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...
23 Oct 2022 by Member 14769677
I am writing a game in Unity where I need to convert a TextMeshProUGUI text into a float, but for some reason this code: float num = float.Parse(inputText.text); Gives me this error: FormatException: Input string was not in a correct format....
23 Oct 2022 by OriginalGriff
We can't tell: it need your code running in context with your inputs to find out. Certainly for me, an input of "1" gives no exception: using System; public class Program { public static void Main() { string input = "1";...
19 Jan 2018 by swamy456
using UnityEngine; using UnityEngine.SocialPlatforms; using System.Collections.Generic; public class AGSSocialLocalUser : AGSSocialUser, ILocalUser { public static AGSPlayer player = AGSPlayer.GetBlankPlayer(); public static List friendList = new List...
19 Jan 2018 by Thomas Daniels
Based on the Unity documentation for ILocalUser[^], Authenticate has two signatures: one with an Action argument (which you have), and another one with an Action argument, which you don't have. Implement that one as well.
25 Jun 2018 by LLLLGGGG
In this article, I am going to explain how to generate a hexagonal tessellation and how to draw it in Unity 3D
6 Apr 2016 by Vangos Pterneas
Getting started with Hololens and Unity3D
2 Oct 2013 by Simon Jackson
Getting started with Unity