Category "unity3d"

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here

Reload Scripts Assemblies (busy for long time) Unity Freezes

I'm Using Unity version 2020.3.32f1 & Rider as Editor. Whenever I make any changes in scripts, even small changes, Unity script assemblies take too much of

Unity MLAPI ServerRPC not getting called

I'm implementing a system in which a player can pickup an item from the game world. After picking the item up, I want to destroy the game object. To do this, I

a javascript error occurred in the main process, Unity hub

After I installed Unity hub and tried to Launch it in Windows 10 , "a javascript error occurred in the main process" appeared. Anyone encountered the same err

Does cross-platform C++ require building separately on every single platform?

My question actually has two variants, but for some context, I have a C++ *.DLL that I use with Unity using P/Invoke. It's built on Windows 10 with MSBuild (pla

The .gitignore setting for the .idea folder of Jetbrains Rider's does not work

I am currently working on a game project for Android using Unity and Rider on Windows10. Git administration is using Github Desktop. After completing the game

Weird Lines 3D Unity

I'm working on a project, using unity 5.4. In this projects blocks are stacked next to eachother. However there appear some annoying weird lines. Also on andro

Find closed loops between a series of connected points

So I've been trying work out how to approach what i initially was a simple problem - turns out i'm an idiot and have no idea what i'm doing. Firstly my data st

I'm getting this error when trying to run the mlagents-learn command. All the correct versions of the correct packages are installed in a venv

I'm trying to use this toolkit to get the hang of creating machine learning agents in simulations. It seemed like the easiest one out there, so I followed a tut

AR Object is moving with the camera in unity

i create a GameObject in unity where my GPS is,and setting the unity camera with the GPS after I convert it to xyz here is my problem: when I move the android d

When I click on an Object with an Audio Source all sounds of the game play at the same time

I'm making a sound game for kids where they have to place notes in the proper line that sounds like the note. So I need the notes and the lines to play a sound

Unity: Generic Method to get or add a component

Every time I make a new Script in Unity, I always end up doing a bunch of checks for any components my script depends on, like: SpriteRenderer sr = gameObject.

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Programming Unity Games with Ruby

So I see that unity has the support for c#, JS and Boo. I could learn one of these but I would like to make a 'compiler' or something similar that would let me

if Unity will include the chunk of code in apk if I write it in "UNITY_EDITOR"

Example: If I write following code in a Script file. #if UNITY_EDITOR Debug.Log( "I'll print in Editor only.." ); #endif My question is that when creating

How to manually change variables on custom window editor and make it it persistent?

I'm trying to create a custom editor window in Unity that make me able to generate "things". When I open my custom window I want a list (and of course other var

Unity input is not working, how to fix it?

this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // Start is called

MRTK Photon Unity Networking 'AnchorModuleScript' namespace not found

While following the mrtk tutorial on multi-user capabilities, there has been one CS0246 error that I haven't been able to avoid. After importing PUN 2 from the

3d unity c# car reverse direction movement

I need some help in moving my player car in the reverse direction in unity C# scripting. The forward movement is perfect but the reverse movement is totally opp