Click here to Skip to main content
14,976,594 members
Everything / Game Development / Unity

Unity

Unity

Great Reads

by Akhil Mittal
This article will not be very theoretical, but would be more of a tutorial to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection.
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 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
by Simon Jackson
Since we started supporting Android platforms fully in the XRTK, we have been through the mill working through all the possible combinations of testing, debugging and banging heads against tables to make Android platforms behave.
by Vangos
Azure + HoloLens = Mixed Reality to the Cloud!

All Articles

Sort by Score

Unity 

Please Sign up or sign in to vote.
13 Mar 2018
Akhil Mittal
This article will not be very theoretical, but would be more of a tutorial to showcase the existing problems with tightly coupled applications, how to make the application loosely coupled and achieve inversion of control via dependency injection.
Please Sign up or sign in to vote.
19 Feb 2018
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.
Please Sign up or sign in to vote.
14 Nov 2013
Alexander SchuIze, Felix Herbst, Paul Kirsten
Multi-User game for AIO where players build their own spider's web
Please Sign up or sign in to vote.
16 Jun 2016
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
Please Sign up or sign in to vote.
16 Oct 2017
IAmJoshChang
Adding new bandit enemy
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
Going through the Unity Ball tutorial
Please Sign up or sign in to vote.
7 Nov 2017
IAmJoshChang
How to run Google Cardboard on an Android Device in Unity
Please Sign up or sign in to vote.
29 Nov 2015
MatthewThomas
Adding design time support for regions in Prism 6
Please Sign up or sign in to vote.
18 Dec 2015
Md. Marufuzzaman
This tip shows you an easy way to split Microsoft SQL Server table row data.
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
How to create weapon ammo in Unity
Please Sign up or sign in to vote.
30 Nov 2017
IAmJoshChang
How to set up Google Spatial Audio in Unity
Please Sign up or sign in to vote.
10 Oct 2018
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....
Please Sign up or sign in to vote.
5 Dec 2014
Nabeel Saleem
Some ways to fix unity webplayer issue in chrome
Please Sign up or sign in to vote.
2 Sep 2015
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.
Please Sign up or sign in to vote.
2 Sep 2015
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...
Please Sign up or sign in to vote.
6 Jun 2017
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.
Please Sign up or sign in to vote.
13 Oct 2017
IAmJoshChang
How to create Victory state after we defeat all enemies
Please Sign up or sign in to vote.
18 Oct 2017
IAmJoshChang
How to create a time score system in Unity
Please Sign up or sign in to vote.
30 Oct 2017
IAmJoshChang
How to implement the high score system
Please Sign up or sign in to vote.
2 Nov 2017
IAmJoshChang
How to set up the Google Cardboard in Unity
Please Sign up or sign in to vote.
17 Nov 2017
IAmJoshChang
How to create a VR first person shooter II
Please Sign up or sign in to vote.
19 Nov 2017
IAmJoshChang
How to create a VR first person shooter - III
Please Sign up or sign in to vote.
30 Nov 2017
IAmJoshChang
How to use the Daydream controller with our FPS
Please Sign up or sign in to vote.
12 Nov 2015
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.
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
How to create AI movements for enemies in Unity
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
Survival Shooter - tutorial I
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
Going through the Unity space shooter tutorial
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
How to use a real gun model in Unity
Please Sign up or sign in to vote.
17 Oct 2017
IAmJoshChang
How to add a new tank enemy
Please Sign up or sign in to vote.
18 Oct 2017
IAmJoshChang
How to spawn new enemies in Unity and deal with "Ghost" colliders
Please Sign up or sign in to vote.
24 Oct 2017
IAmJoshChang
How to save and load data in Unity
Please Sign up or sign in to vote.
7 Nov 2017
IAmJoshChang
How to get our FPS game running in VR
Please Sign up or sign in to vote.
15 Nov 2017
IAmJoshChang
Creating a VR first person shooter I
Please Sign up or sign in to vote.
29 Nov 2017
EgorYusov
This article describes Unity low-level plugin interface and the Unity graphics interface emulator that facilitates native plugin development.
Please Sign up or sign in to vote.
7 May 2020
DaveMathews
Using an on-device bot development framework to integrate a chatbot into unity
Please Sign up or sign in to vote.
1 Mar 2015
Bankey Sharma
Some general guidelines to make application source agnostic and business adaptive
Please Sign up or sign in to vote.
2 Jun 2015
Paulo Zemek
Breaking changes and Unity
Please Sign up or sign in to vote.
2 Sep 2015
rashidebad
Unity-vs-Xamarin[^]
Please Sign up or sign in to vote.
19 Oct 2016
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...
Please Sign up or sign in to vote.
10 Oct 2017
IAmJoshChang
How to shoot with a gun in Unity
Please Sign up or sign in to vote.
12 Oct 2017
IAmJoshChang
How to fix Game Object Collider in Unity
Please Sign up or sign in to vote.
27 Jan 2019
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.
Please Sign up or sign in to vote.
24 Feb 2019
Vangos
Azure + HoloLens = Mixed Reality to the Cloud!
Please Sign up or sign in to vote.
21 Jul 2019
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...
Please Sign up or sign in to vote.
28 Jan 2020
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....
Please Sign up or sign in to vote.
29 May 2020
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...
Please Sign up or sign in to vote.
12 Feb 2014
charles henington
This is an alternative for "Send Mail With Attachment File"
Please Sign up or sign in to vote.
30 Apr 2013
Keyhole Software
How to write games with Unity 3D in JavaScript in C# - Part 1
Please Sign up or sign in to vote.
28 Feb 2014
Member 10618996
1 alternative  
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....
Please Sign up or sign in to vote.
11 Apr 2014
Duncan Edwards Jones
1 alternative  
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...
Please Sign up or sign in to vote.
21 Aug 2014
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...
Please Sign up or sign in to vote.
29 Nov 2014
mark zuck
1 alternative  
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 ?
Please Sign up or sign in to vote.
14 Jul 2015
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.
Please Sign up or sign in to vote.
30 Sep 2015
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 -...
Please Sign up or sign in to vote.
23 Oct 2015
alex_lviv
In this article, I will try to describe my vision on creation of simple 3-layer application based on .NET technologies.
Please Sign up or sign in to vote.
4 Nov 2015
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...
Please Sign up or sign in to vote.
1 Dec 2015
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.
Please Sign up or sign in to vote.
1 Feb 2016
Android on Intel
We recently spoke about these topics with some of the game developers who won our joint contest with Unity Technologies.
Please Sign up or sign in to vote.
10 Mar 2016
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.)...
Please Sign up or sign in to vote.
19 Apr 2016
Android on Intel
Unnecessarily high resolution textures can easily become a bottleneck in mobile games and slower hardware
Please Sign up or sign in to vote.
23 Apr 2017
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...
Please Sign up or sign in to vote.
17 May 2017
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...
Please Sign up or sign in to vote.
19 Jul 2017
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.
Please Sign up or sign in to vote.
18 Aug 2017
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.
Please Sign up or sign in to vote.
10 Aug 2019
RickZeeland
See example here: Grouping objects in the Hierarchy? - Unity Answers[^]
Please Sign up or sign in to vote.
16 Oct 2019
Simon Jackson
Since we started supporting Android platforms fully in the XRTK, we have been through the mill working through all the possible combinations of testing, debugging and banging heads against tables to make Android platforms behave.
Please Sign up or sign in to vote.
27 Nov 2019
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...
Please Sign up or sign in to vote.
22 Jan 2020
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...
Please Sign up or sign in to vote.
10 Feb 2020
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.
Please Sign up or sign in to vote.
6 Apr 2020
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....
Please Sign up or sign in to vote.
28 Jul 2020
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...
Please Sign up or sign in to vote.
2 Aug 2020
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,...
Please Sign up or sign in to vote.
26 Oct 2020
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.
Please Sign up or sign in to vote.
27 Oct 2020
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...
Please Sign up or sign in to vote.
9 Mar 2021
Richard MacCutchan
See Xamarin.Essentials - Xamarin | Microsoft Docs[^], but you need to be a reasonably experienced programmer.
Please Sign up or sign in to vote.
6 Apr 2021
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...
Please Sign up or sign in to vote.
22 Jan 2020
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.
Please Sign up or sign in to vote.
18 May 2021
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 ...
Please Sign up or sign in to vote.
13 Jun 2013
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...
Please Sign up or sign in to vote.
23 Jul 2013
tharindutpd
This way can be used to pass parameters into unity webplayerGet URL parameters and assign to Use_id->Inside html page ->function OnUnityReady(){ u.getUnity().SendMessage("GameObject", "myTest", GET.Use_id);}Inside unity3D C# code ->void...
Please Sign up or sign in to vote.
14 Dec 2013
OriginalGriff
The reason is probably that a Tag property is normally an object and an object is not a string, so you can't compare it with one. Cast the Tag property to the class you are expecting, and use it then:string s = other.tag as string;if (s != null & s == "Coin") ...
Please Sign up or sign in to vote.
17 Dec 2013
SarveshShukla
Normally web.config is used to register all your types with the Unity container and then in Global.asax.cs you can configure your unity container using web config section. Let me know if you need any other detail.
Please Sign up or sign in to vote.
17 Dec 2013
SarveshShukla
Please find the code for configuring Unity container. Also please ensure that you have section in your web config where you would register your typesEnsure that you take a static container variable so that it is available for all requestpublic static IUnityContainer container;Below...
Please Sign up or sign in to vote.
21 Dec 2013
Member 8816170
I made an example solution with an Shell application, two WPF library views, and a Class Library projects. The Class Library is the repository with interface for a string variable. I can access the repository string variable to get the message "Hello World". But I am unable to figure out how...
Please Sign up or sign in to vote.
16 Jan 2014
Member 9846414
Hi i am new to unity .i have a problem object is moving along the path but when turning the road my object is taking the wide turn for that i set waypoint also not working .can u help me anyone below code.help me var FrontLeftWheel : WheelCollider;var FrontRightWheel :...
Please Sign up or sign in to vote.
26 Feb 2014
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...
Please Sign up or sign in to vote.
2 Mar 2014
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 =...
Please Sign up or sign in to vote.
13 Apr 2014
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 ...
Please Sign up or sign in to vote.
15 Apr 2014
Per Söderlund
Attach this script to object1.using UnityEngine;using System.Collections;public class Follow: MonoBehaviour { GameObject TargetObject; void Start () { TargetObject = GameObject.Find("object2"); } void FixedUpdate () { this.transform.position =...
Please Sign up or sign in to vote.
15 Apr 2014
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[^]
Please Sign up or sign in to vote.
28 Apr 2014
Duncan Edwards Jones
1 alternative  
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...
Please Sign up or sign in to vote.
29 Apr 2014
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)) ...
Please Sign up or sign in to vote.
16 Oct 2014
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
Please Sign up or sign in to vote.
7 Oct 2014
Praveen Dselva
I have A Interfacepublic interface ICountryDataService { void CountryDataService_Save(ICountry country); }And implement in a Classclass CountryDataService : DataServiceBase, ICountryDataService { public CountryDataService() { } ...
Please Sign up or sign in to vote.
15 Oct 2014
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...
Please Sign up or sign in to vote.
5 Dec 2014
Member 11289668
1 alternative  
I have been bashing my head against this RPC call for a few hours now, and despite extensive googling I cannot figure out what is going wrong.At the moment, I am doing all testing within unity editor, (player set to run in background if that matters).For some reason, my RPC call isn't...
Please Sign up or sign in to vote.
7 Dec 2014
brain tees
You should do some search on this site. Its available hereUnity Player Needs Your Permission To Run In Chrome[^]
Please Sign up or sign in to vote.
8 Dec 2014
Jenni Kore
1 alternative  
My unity remote for android suddenly stopped working and answer on how can i fix it ?
Please Sign up or sign in to vote.
9 Jan 2015
OriginalGriff
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...A very quick search using part of your question as the search term gave 72 million hits: Google: "player bounce off when he is going out of the screen unity"[^]In...
Please Sign up or sign in to vote.
21 Jan 2015
Member 11391738
You must be sure to add a nertworkview on the gameobject of your script. You can add [RequireComponent (typeof (NetworkView))] at the start of your class to ensure unity add it by itself.
Please Sign up or sign in to vote.
1 Apr 2015
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...
Please Sign up or sign in to vote.
8 Apr 2015
Sergey Alexandrovich Kryukov
The answer is simple "GetComponent = " is total gibberish in several aspects.It would be complete waste of time to explain what's wrong here, especially without having the declarations of GetComponent and rigidbody2d. It looks like you get a finally defined function from a generic function...
Please Sign up or sign in to vote.
8 Apr 2015
Sergey Alexandrovich Kryukov
The answer is simple: "GetComponent = " is total gibberish in several aspects.It would be complete waste of time to explain what's wrong here, especially without having the declarations of GetComponent and rigidbody2d. It looks like you get a finally defined function from a generic function...
Please Sign up or sign in to vote.
24 Jun 2015
MrteR
Hi guys,After several hours of searching on Google, I can not find my answer. I hope you can help me out.I want to make a factory which builds up the UI.Among them: a TabControl with TabPages and controls. These are built up by metadata. What is the best place for this logic for my...
Please Sign up or sign in to vote.
22 Jul 2015
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...
Please Sign up or sign in to vote.
31 Jul 2015
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.
Please Sign up or sign in to vote.
4 Aug 2015
Michael Adaixo
Variable jump height in Unity
Please Sign up or sign in to vote.
17 Aug 2015
sdsoft.comze.com
1 alternative  
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 ...
Please Sign up or sign in to vote.
16 Aug 2015
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;...
Please Sign up or sign in to vote.
18 Aug 2015
Shahan Ayyub
While using unity remote, you have to STRICTLY follow this document[^] for troubleshooting problem. It happens several times, that it do not begin first remote session after connecting device or although suddenly stop beginning any new session. Following this document fixes most of the...
Please Sign up or sign in to vote.
20 Sep 2015
Member 11998234
Good evening,I am using Unity games development.How do I make sure the different sprites drop down at different rates and and never stop (Endless)Any help would be appreciated
Please Sign up or sign in to vote.
25 Sep 2015
KE JJ
hello everyone- I want to build Facebook login in Unity game. login script was written in the unity, than I build it and saved to the IIS. It appeals problems when I login:=================Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed...
Please Sign up or sign in to vote.
1 Oct 2015
Android on Intel
Porting Guide for Unity Game on Intel® Architecture for China Market
Please Sign up or sign in to vote.
30 Sep 2015
Member 12024660
3 alternatives  
I am getting a NullReferenceException: object reference not set to an instant of an object.I am a beginner and had learned this through a video. All the code is good but the null appears on the line: "playerRigidBody.MovePosition(transform.position + movement);"I have tried for...
Please Sign up or sign in to vote.
30 Sep 2015
Member 11428137
It looks like you may have two problems here.First is your awake method. According to the API documentation, the method should be Awake with a capital A. C# is case sensitive, so it won't be calling your awake method which initializes playerRigidBody.The second thing I can see is that in...
Please Sign up or sign in to vote.
30 Sep 2015
Naveen.Sanagasetti
Almost all developers may face this error once in his/her development life time. The main reason of this is, if you try to assign null value to some object or calling control using null value etc.. If you want to resolve this, the best practice is check the null case before doing action.
Please Sign up or sign in to vote.
25 Oct 2015
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,...
Please Sign up or sign in to vote.
30 Oct 2015
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.
Please Sign up or sign in to vote.
23 Nov 2015
Richard MacCutchan
See https://msdn.microsoft.com/en-us/games-development-msdn.aspx[^].
Please Sign up or sign in to vote.
5 Dec 2015
ranjith m amin
Hi. I have downloaded free project from internet. When i try to run exe it's not turning ON the kinect and on change in display(just a blue background). If i try to run unity code it is giving error that unityinterface.dll missing. I tried pasting the dll file in root folder of unity.exe,...
Please Sign up or sign in to vote.
1 Mar 2016
Richard MacCutchan
See Unity - Manual: Multiplayer and Networking[^].
Please Sign up or sign in to vote.
5 Mar 2016
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...
Please Sign up or sign in to vote.
15 Apr 2016
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.
Please Sign up or sign in to vote.
17 Apr 2016
wasicool2
1 alternative  
I followed this tutorial on youtube: Unity3D. Top-down 8 directions movement - YouTube[^]. It took me a while but I've almost converted from movement by arrows to mouse touch . but now I have this problem, there's flickering that occurs when the character stops moving. I looked at the link he...
Please Sign up or sign in to vote.
17 Apr 2016
leon de boer
You need a dead zone on your Animation transitions make them > 0.1f NOT > 0f you are getting jitter. Hold focus on the character in the object inspector and watch the animator editor transitions.This is the patch to your code but this is not the proper fix which I will explain next if...
Please Sign up or sign in to vote.
19 Apr 2016
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.
Please Sign up or sign in to vote.
5 May 2016
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...
Please Sign up or sign in to vote.
27 Jul 2016
Jessca Stone
Is there a way of returning back to my previous game application when I close unity/close game application on button press. Basically I have a scene with a button in it, if the player press the button, it will bring them to a new level (scene 1). This is where I want to save this scene (scene 2)...
Please Sign up or sign in to vote.
11 Aug 2016
Member 12681347
1 alternative  
Hi all.I have a basic exe file which requires the pressing of a letter key, followed by the return key to input that selection. I am trying to control this input via a game I've built in Unity, specifically, via functions I call with key-presses.Currently, when I press 'space', the...
Please Sign up or sign in to vote.
11 Aug 2016
Richard Deeming
You need to write the command to the StandardInput property of the Process instance:ProcessStartInfo startInfo = new ProcessStartInfo("C:\\Users\\Nathan\\Desktop\\stim_data_receiver.exe", "NO_STIMULATOR 1000000 REMOTE");startInfo.RedirectStandardOutput =...
Please Sign up or sign in to vote.
15 Aug 2016
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...
Please Sign up or sign in to vote.
14 Oct 2016
Member 12794652
1 alternative  
I'm here to start 3D game development ... I just need to guide easy & best way to start 3d graphics development some people suggest me this link for basic guidelines "Start 3D game development". Plz, guide me for best...What I have tried:i want to "Start 3D game development". Plz, guide...
Please Sign up or sign in to vote.
30 Jan 2017
Brady Kelly
1 alternative  
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...
Please Sign up or sign in to vote.
30 Jan 2017
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.
Please Sign up or sign in to vote.
8 Feb 2017
Mr American Pie
2 alternatives  
I have been trying to figure out this but with no success . What I am trying to do is to keep the old text while the script adds the new text below the old text.public GameObject Text_Object; private Text textComponent; void Start () { //gets the text UI Object in...
Please Sign up or sign in to vote.
8 Feb 2017
Richard MacCutchan
textComponent.text = textComponent.text + "Hey";
Please Sign up or sign in to vote.
8 Feb 2017
Patrice T
Richard gave you a solution, but you need to learn JS much deeper.http://www.w3schools.com/js/default.asp[^]W3Schools Online Web Tutorials[^]
Please Sign up or sign in to vote.
21 Feb 2017
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...
Please Sign up or sign in to vote.
8 Mar 2017
CPallini
I looks there are resources available: Simple TCP/IP Client - Server - Unify Community Wiki[^].
Please Sign up or sign in to vote.
4 Apr 2017
Member 7870345
Looking the code bool CheckSubproject() { #pragma warning disable 649 // Unreachable code detected 0162 changed to 649 if (sub != "") return true; string result = ""; //(string) is the unreachable code that is detected ... if the compiler marks the string result=""; as unreachable it...
Please Sign up or sign in to vote.
4 Apr 2017
Patrice T
Quote: error code of CS0162 "unreachable code detected" This error message do not tell you that there is an error where you see it, it tells you that preceding code is made in such a way that the line of "unreachable code" will never be executed. At compile time, the compiler can detect that...
Please Sign up or sign in to vote.
20 Apr 2017
Vishal Pand3y
I'm trying to setup Unit Test in services using Moq and NUnit I tried Mocking context and DbSet like var mockSet = new Mock>(); var mockContext = new Mock(); mockContext.SetupGet(m => m.Student).Returns(mockSet.Object); but my services depends on other service...
Please Sign up or sign in to vote.
6 May 2017
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...
Please Sign up or sign in to vote.
4 Jun 2017
Member 10610621
Guys below is my Code for My PlaycontrollerScript and PlatformMover script what i am trying to achieve here is i want when my player jump on the platform that particular group of platform to go down ,basically like doodle jump ,but as i am doing something wrong here platform groups are spawning...
Please Sign up or sign in to vote.
1 Jul 2017
Morny
1 alternative  
Hi I’ve come to the conclusion that a C# MVC 5 project (using Entity framework, code first and migrations) I’m working on has grown too big to fit the “out of the template” structure. I’m trying to build a site where the public part at the site is placed in the “root” or where a site build on...
Please Sign up or sign in to vote.
1 Jul 2017
RickZeeland
These seem like hands-on articles on the subject: An Absolute Beginner's Tutorial on Dependency Inversion Principle, Inversion of Control and Dependency Injection[^] Inversion of Control, Dependency Injection and Service Locator in C# – CsharpStar[^] Inversion of Control and Dependency...
Please Sign up or sign in to vote.
24 Jul 2017
EmpireWorld
1 alternative  
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...
Please Sign up or sign in to vote.
18 Aug 2017
Thomas Daniels
Terrain ter = (Terrain)terrain.GetComponent(typeof(Terrain)); TerrainData ter = ter.terrainData; Type ter = ... says that a new variable of type Type (here Terrain or TerrainData) has to be created. But at TerrainData ter = ..., there already exists a variable of type ter in the same (or...
Please Sign up or sign in to vote.
12 Nov 2017
jaideepsinh
Can anyone explain how I can show ppt presentation in unity application? I did many research on that but found that unity does not support ppt. So think to convert ppt into an image but not get any success so want to know that Is it possible to convert ppt file to image in unity if yes then...
Please Sign up or sign in to vote.
12 Nov 2017
Member 13516989
2 alternatives  
using System.Collections; using UnityEngine; public class playercontroller : MonoBehaviour { private Rigidbody rb; void Start () { rb = GetComponent(); void FixedUpdate () { float moveHorizontal = Input.GetAxis ("Horizontal"); float moveVertical = Input.GetAxis...
Please Sign up or sign in to vote.
12 Nov 2017
Patrice T
Learn to indent properly your code, it show its structure and it helps reading and understanding. using System.Collections; using UnityEngine; public class playercontroller : MonoBehaviour { private Rigidbody rb; void Start () { rb = GetComponent(); void FixedUpdate...
Please Sign up or sign in to vote.
12 Nov 2017
Karthik_Mahalingam
public class playercontroller : MonoBehaviour { private Rigidbody rb; void Start() { rb = GetComponent(); } //add this closing bracket void FixedUpdate() { float moveHorizontal = Input.GetAxis("Horizontal"); float moveVertical =...
Please Sign up or sign in to vote.
14 Nov 2017
swamy456
1 alternative  
#pragma strict var resume : GUITexture; var resume_tex : Texture2D[]; var pauseMenu : GUITexture; var click : AudioClip; function Start () { } function Update () { //if (Input.touchCount>0) { // for (var touch : Touch in Input.touches) { // // // if (touch.phase ==...
Please Sign up or sign in to vote.
14 Nov 2017
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.
Please Sign up or sign in to vote.
14 Dec 2017
swamy456
2 alternatives  
#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...
Please Sign up or sign in to vote.
13 Dec 2017
Richard MacCutchan
Transform does not appear to have such a property according to Unity - Scripting API: Transform[^].
Please Sign up or sign in to vote.
14 Dec 2017
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...
Please Sign up or sign in to vote.
22 Dec 2017
Member 13590515
Hello everyone, I am working on a Mario Clone, and it all worked well until I started to add some animations to Mario. I've got a feeling that is has something to do with the Coroutines. Here is the code for the PlayerMovement Script: https://pastebin.com/fVf0jbnP And here is the...
Please Sign up or sign in to vote.
1 Jan 2020
swamy456
1 alternative  
// 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...
Please Sign up or sign in to vote.
19 Jan 2018
swamy456
1 alternative  
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...
Please Sign up or sign in to vote.
19 Jan 2018
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.
Please Sign up or sign in to vote.
20 Jan 2018
dolfijn3000
1 alternative  
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...
Please Sign up or sign in to vote.
20 Jan 2018
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...
Please Sign up or sign in to vote.
4 Feb 2018
swamy456
1 alternative  
AssetDatabase.Refresh(); AssetDatabase.ImportAsset( path, ImportAssetOptions.ForceSynchronousImport ); var gameObj = target.gameObject; var script = AssetDatabase.LoadAssetAtPath( path.MakeRelativePath(), typeof( MonoScript ) ) as MonoScript;...
Please Sign up or sign in to vote.
2 Feb 2018
Thomas Daniels
AddScriptComponentUnchecked is in the InternalEditorUtility class because it's not intended for public use so it can change anytime without notice[^], and it looks like you're using a Unity version that's too new to use this method. You should check if there's a way using public methods to do...
Please Sign up or sign in to vote.
18 Feb 2018
Member 13682972
1 alternative  
it says error CS1525 Unexpected symbol 'Application' when I try to use this command: Application.Quit(); here is what I wrote in Microsoft visual studio: using UnityEngine; public class Credits : MonoBehaviour { public void Quit() { Debug.Log("QUIT") ...
Please Sign up or sign in to vote.
18 Feb 2018
ZurdoDev
As Richard pointed out you do not have a semi-colon (;) at the end of the Debug.Log() statement. So, the compiler is telling you that it did not expect to see Application.
Please Sign up or sign in to vote.
18 Feb 2018
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",...
Please Sign up or sign in to vote.
11 Mar 2018
Member 13719839
1 alternative  
if i get what i need the rerun a should be inside of the loop But when i wrote that showed bug . What I have tried: float moveValue( float b = 0.0f) { float a =0.0f; for (float i = 0.0001f; i
Please Sign up or sign in to vote.
11 Mar 2018
#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...
Please Sign up or sign in to vote.
18 Apr 2018
Member 13745684
I am trying to build a first person mobile game and i need some assistance. I am having some issues with my mobile joysticks. I have 2 joysticks, one for movement and one for the camera. The camera joysticks is not working, and the movement joystick only does something to the degree of a one...
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to create a menu that stays in your screen in Unity
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to implement Menu scrolling in Unity
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to write code to interact with Menus in Unity
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to create a menu in Unity
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
Picking up and throwing objects in Unity
Please Sign up or sign in to vote.
27 May 2018
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!
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to apply the outline effect on our Ball game object
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to add an outline effect on game objects
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to rotate a Vector and move in the direction the player is facing in Unity
Please Sign up or sign in to vote.
27 May 2018
IAmJoshChang
How to implement movement in Google Daydream
Please Sign up or sign in to vote.
4 Sep 2018
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(); ...
Please Sign up or sign in to vote.
26 Oct 2018
OriginalGriff
status is not a "global variable" (there are no such things in C# by design, although static variables do allow you to approximate them) - it is a local parameter variable, and is only accessible inside the ChangeStatus method, it's location in memory is not fixed and will vary while the app is...
Please Sign up or sign in to vote.
28 Oct 2018
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.
Please Sign up or sign in to vote.
29 Oct 2018
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....
Please Sign up or sign in to vote.
13 Nov 2018
Vlad Neculai Vizitiu
What an Inversion of Control (IoC) container is and how it works
Please Sign up or sign in to vote.
14 Nov 2018
solairx
1 alternative  
Does anyone know if it is possible to render a WPF/Win32 inside a Unity or dx12 application ? We have a old WPF that we would like to Embedded as a part of a Mixed Reality Application. What I have tried: I've tried Noesis that seems great but that would mean a complete rewrite of our...
Please Sign up or sign in to vote.
14 Nov 2018
Gerry Schmitz
Any "old" Windows app (including WPF) can run in a "Mixed Reality" environment. Difference is, it can only run as a 2D "panel" (i.e. "window") in the MR space.
Please Sign up or sign in to vote.
4 Dec 2018
Member 14077585
Hi. I'm trying to reference an instance or object of a class in another script (using Unity). My problem is, when I execute the code, I want to change which object I am referencing based on a string variable that changes. for example: string y = otherScript.User1.name; string y will then...
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
How to save our coin and score in PlayerPrefs
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
How to add music and motion blur with post processing effects
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Third and final power-up for the cube flyer series: the invincible power-up!
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Adding the finishing touches to this power-up, like what we have already done with the magnet power-up
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Welcome back! Today, we’re going to finally move on to the second up of our three power-ups! In the past 4 posts we talked about implementing a magnet power-up, today we’re going to work on a score multiplier power-up!
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Adding Magnet Visual Effects with Particle Systems
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Welcome to Day 86! After two or so posts talking about making the power-up magnet, we’re finally at the point where we have the infrastructure to write the magnet power up. I Promise!
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
Are you ready for another exciting installment of adding power-ups? Today we’re going to start implementing the first power-up! The coin magnet! With the magnet power-up, whenever we get close to a coin, the coin will start flying towards us.
Please Sign up or sign in to vote.
6 Feb 2019
IAmJoshChang
How to go about adding sound effects into our game
Please Sign up or sign in to vote.
15 Feb 2019
Member 13943607
I am trying to run a code sample of Kafka in unity environment and for this reason, I created a consumer client (Code given below). using System.Collections; using System.Collections.Generic; using UnityEngine; using Confluent.Kafka; using Confluent.Kafka.Serialization; using System.Text;...
Please Sign up or sign in to vote.
21 Feb 2019
Member 12391302
Hello, I am very new in VR and I want to create a VR application that uses a Crank with both hands and plug the crank into an object to rotate to move another object. I started downloading Steam VR 2.0 and after reading the documentation they said that they not developed the interaction using...
Please Sign up or sign in to vote.
4 Mar 2019
Member 14135033
1 alternative  
I have a transition with some doors closing when you press a btn for Lv1, I understand that the timer is in the update method so that when it reached 0 it will load my level However I'm trying to say when my private void StartDoor() function is called to then START this delay to load...
Please Sign up or sign in to vote.
4 Mar 2019
Member 14135033
This has worked for me using UnityEngine; using Spine.Unity; using Spine; using UnityEngine.SceneManagement; public class DoorTransition : MonoBehaviour { public SkeletonAnimation SkelAnim; [SpineAnimation] public string DoorClose; bool TimerStarted = false; private...
Please Sign up or sign in to vote.
11 Apr 2019
Member 14035055
1 alternative  
I have two lists with 4 strings each. I shuffle them and then I select a string on each list to create a combination of strings from both lists. I want the four combinations (written below) repeated four times (so 16 combinations in total) but each of these combination should be presented in a...
Please Sign up or sign in to vote.
11 Apr 2019
Gerry Schmitz
You should shuffle list2 in the "outer loop" (not before), if you want "combinations within combinations".
Please Sign up or sign in to vote.
9 Aug 2019
OriginalGriff
We can't help you with that, without the whole system that code is running as part of - and we don't have that, and don;t want it - we'd have to learn your whole game and it's ode in order to test it! So, it's going to be up to you. Fortunately, you have a tool available to you which will help...
Please Sign up or sign in to vote.
9 Aug 2019
Patrice T
Quote: this code not working for me There nothing we can do with this code, I fear you will have to learn how to debug your code. Fortunately, the debugger is an incredible learning tool. Your code do not behave the way you expect, or you don't understand why ! There is an almost universal...
Please Sign up or sign in to vote.
25 Sep 2019
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 =...
Please Sign up or sign in to vote.
19 Nov 2019
Member 14661687
1 alternative  
NullReferenceException: Object reference not sent to an instance of an object this is the error continuously coming. I am making a game on unity so while doing the code in C# for game this error is coming how to resolve this? Please please answer What I have tried: using...
Please Sign up or sign in to vote.
19 Nov 2019
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 - which...
Please Sign up or sign in to vote.
6 Dec 2019
Member 14013003
1 alternative  
my problem in line 9 error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer Unity C# What I have tried: public GameObject camera; public Material skybox; void Start () { if (File.Exists (Path.Combine (Environment.GetFolderPath...
Please Sign up or sign in to vote.
6 Dec 2019
OriginalGriff
Look at the error message, it tells you what the problem is, and where. So look at line 9 (CTRL+g will take you there in VS) and it is an assignment: skybox.SetTexture = reader.ReadLine(); The name SetTexture implies a method to me, and you can't assign to a method. So look at the...
Please Sign up or sign in to vote.
11 Dec 2019
Member 14013003
1 alternative  
Error IOException Sharing violation on path my problem in check audio StreamReader What I have tried: mute audio public Toggle mute; public Text lable; public GameObject camera; if (mute.isOn == true) { camera.GetComponent().enabled = false; ...
Please Sign up or sign in to vote.
11 Dec 2019
Richard MacCutchan
You are trying to write to a file that is open for reading.
Please Sign up or sign in to vote.
1 Jan 2020
Member 14704891
Change exemple myTexture.set_name("Color Texture by Hedgehog Team"); to myTexture.name = "Color Texture by Hedgehog Team";
Please Sign up or sign in to vote.
22 Jan 2020
OriginalGriff
We can't help you. We don't have access to your code, or your data, or your system: so we have no idea what kind of access you are trying to get to the root of drive D:, or even that D: exists on your computer. Probably it does exist: the error message is telling you that your application (or...
Please Sign up or sign in to vote.
30 Jan 2020
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...
Please Sign up or sign in to vote.
7 Apr 2020
олег TV
1 alternative  
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...
Please Sign up or sign in to vote.
19 Feb 2020
Keith.Harrie
1 alternative  
Assets\IAP\IAPManager.cs(10,54...
Please Sign up or sign in to vote.
19 Feb 2020
OriginalGriff
Because your close curly bracket is in the wrong place. There is one immediately above this line: public bool IsInitialized() Which terminates the class definition. As a result, the methods below that close curly bracket are not a part of the...
Please Sign up or sign in to vote.
2 Apr 2020
sOwlO
1 alternative  
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...
Please Sign up or sign in to vote.
2 Apr 2020
Gerry Schmitz
Use Stopwatch to narrow things down. Stopwatch Class (System.Diagnostics) | Microsoft Docs[^]
Please Sign up or sign in to vote.
6 Apr 2020
Patrice T
Quote: Index was out of range. Must be non-negative and less than the size of the collection Iy means exactly what it says. The exact error message tells you line where error happen. For some reason, probably depending on data, an...
Please Sign up or sign in to vote.
11 May 2020
Member 14827396
i am trying to code a death script that restarts the scene when you die, this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PlayerDeath :...
Please Sign up or sign in to vote.
17 May 2020
dunno1921
1 alternative  
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...
Please Sign up or sign in to vote.
17 May 2020
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.
Please Sign up or sign in to vote.
29 May 2020
CodingGreek
1 alternative  
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...
Please Sign up or sign in to vote.
30 Jun 2020
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.
Please Sign up or sign in to vote.
1 Jul 2020
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...
Please Sign up or sign in to vote.
1 Jul 2020
Richard MacCutchan
Looking at the video the player object is an instance of the GameObject class, so it must be spelled with a capital 'G'. The other reference is a property of transform.parent and is spelled with a lower case 'g', as follows: private...
Please Sign up or sign in to vote.
28 Jul 2020
Member 14898413
1 alternative  
I'm trying to get a sprite to shrink and grow on command but can't figure out how. Any help would be appreciated. This is my current code. transform.localScale += new Vector3(0.2f,0.2f,0.5f);Input.GetAxis("Fire2"); What I have tried: Still...
Please Sign up or sign in to vote.
28 Jul 2020
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 =...
Please Sign up or sign in to vote.
28 Jul 2020
Ultra960
1 alternative  
using System; using System.Collections.Generic; using UnityEngine; public class destroyplayer : MonoBehaviour { public event Action OnPlayerDeath; // Start is called before the first frame update void Start() { } ...
Please Sign up or sign in to vote.
2 Aug 2020
Hand Cubing
1 alternative  
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' ...
Please Sign up or sign in to vote.
8 Aug 2020
OwenDavies
Installing a desktop environment and setting up RDP to allow us to connect to our Virtual Machine
Please Sign up or sign in to vote.
1 Sep 2020
Member 14928156
1 alternative  
using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Threading; using UnityEngine; using Debug = UnityEngine.Debug; public class Laser : MonoBehaviour { ...
Please Sign up or sign in to vote.
1 Sep 2020
F-ES Sitecore
It depends what you want to do. If you want to check the objects height then you need to check the y axis value if (transform.position.y > 8f) { Destroy(this.gameObject); } The other thing you might be wanting to check is the magnitude...
Please Sign up or sign in to vote.
24 Sep 2020
||Memo||
2 alternatives  
Hi guys, I'm making a quiz game in Unity Engine. I am getting an error like IndexOutOfRangeException: Index was outside the bounds of array. GameManager.GetRandomQuestion(). Codes are: //Variables private List PickedAnswers =...
Please Sign up or sign in to vote.
27 Sep 2020
Member 14950254
2 alternatives  
I am using unity to make a game for the first time but The program gives an error called "The type or namespace name 'VisualStudioInstallation' could not be found (are you missing a using directive or an assembly reference?)". How can I fix this?...
Please Sign up or sign in to vote.
27 Sep 2020
Richard MacCutchan
You need to add the reference to VisualStudioInstallation to your project if it is not already added, and insert a using statement in your code to refer to items from the namespace.
Please Sign up or sign in to vote.
27 Sep 2020
OriginalGriff
There is no "standard" namespace or class called "VisualStudioInstallation" so either you have mistyped it, or produced it yourself. If the latter, have you forgotten to add an assembly reference to each project that needs to access it (Adding...
Please Sign up or sign in to vote.
27 Oct 2020
AKIM 16
2 alternatives  
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...
Please Sign up or sign in to vote.
1 Nov 2020
Shayalp1
2 alternatives  
Hi, I'm actually new to programming, I had an assignment to create a single screen game and now I have to conduct tests on it. I'm completely lost as to how to conduct the test in Visual Studio. Can anyone please assist me, I've been stuck on...
Please Sign up or sign in to vote.
28 Oct 2020
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...
Please Sign up or sign in to vote.
30 Nov 2020
xhon
I'm on a ASP NET MVC 5 web application inside a multi-tier solution. The general scenario is the following: the controller Mvc uses a proxy to call methods from the services (Rest and Service2), the services call the methods from the business...
Please Sign up or sign in to vote.
16 Dec 2020
OriginalGriff
The message says what it means: fields, properties and methods all have to be part of a class in C#, so you cannot declare them outside one. What's happening is that you have a spurious close curly bracket immediately above the definition of ...
Please Sign up or sign in to vote.
12 Jan 2021
Member 15044276
i wrote a script to manage my Particle System emission. The starting lifespan is set to infinite so that the particle never dies until it reaches a specific collider. here's the code using System.Collections; using System.Collections.Generic;...
Please Sign up or sign in to vote.
22 Jan 2021
Mackenzee Ferren
1 alternative  
using System; using UnityEngine; public class CameraLook : MonoBehaviour { public float mouseSpeed = 100f; public Transform playerBody; float xRotation = 0f; void Start() { Cursor.lockState = CursorLockMode.Locked; ...
Please Sign up or sign in to vote.
22 Jan 2021
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[^]
Please Sign up or sign in to vote.
1 Feb 2021
Gerry Schmitz
When your minimum and maximum are both the same, how do you expect to get any "range"? float posMin = 50f; float posMax = 50f;
Please Sign up or sign in to vote.
18 Feb 2021
Jon McKee
The lone '}' after the Update() function closes the class definition, therefore Wander() is a method defined directly within the namespace, hence the error. Move that '}' to the very end of the code you posted and that error should go away.
Please Sign up or sign in to vote.
9 Mar 2021
KEEPREADING
1 alternative  
I am looking to build a Children’s educational app for alphabets, numbers, phrases, words etc. I want to use a cross platform framework that can create good 2D graphics and animated videos. Could you kindly suggest any cross platform frameworks I...