Newest 'unity3d' Questions - Stack Overflow

Questions tagged [unity3d]

Unity is a cross-platform game engine with a built-in IDE developed by Unity Technologies.

0
votes
0answers
5 views

Admob crashing my app at the beginning of launch

I decided to install Admob. However, after installing the Mobile Ads Unity plugin, the application starts and stops working at the beginning of launch. I've tried multiple solutions. One of them I ...
0
votes
0answers
4 views

How to disable the spatial mapping mesh at runtime, or stop it from occluding augmentations? HoloToolKit 2017.4.3.0

In my application, the user is placing an augmented hologram inside of a real world object. Once they are done placing the object, they should be able to issue a voice command that turns off the ...
-3
votes
0answers
16 views

Three Monitor Display for Unity3D with Strong Performance

I am building an application that runs Unity on three non-primary monitors. I have not found a way to not use the primary monitor, so really four displays. I three monitors create a surround video (...
0
votes
0answers
37 views

How can I read the number below [i, j] in a multidimensional array?

I'm making a game in unity 3D that begins by creating a world map. I assign each tile a height value to determine the landscape, but when I try to read the height values of the surrounding tiles, the ...
0
votes
1answer
13 views

how to make Coroutine Timer more Smooth

i'm building an idle game which have couple of scenes i wanted to know if there is a better way to do a timer becuase when i enter the scene with the timer i have a delay before the text is updating ...
-1
votes
0answers
6 views

Google cardboard pause menu using unity 3d [on hold]

Any tutorial for me to build a paused menu without following my main camera because i cant click it in google vr
0
votes
0answers
5 views

Adding audio to asset bugs out the movement

Im trying to learn Unity3d from a tutorial. I have a rocket prefab where the rocket moves up when I click the space button, and in the tutorial next step is to put the audio source. But when I put the ...
-1
votes
0answers
9 views

Unity Button.onClick.AddListener() strange behaviour when used with C# lambda [duplicate]

I am trying to create an in-game shop in Unity. I create the item selection interface on run-time from an array of ShopItems with the following for loop: for (int i = 0; i < buttons.Length; ++...
0
votes
1answer
20 views

Hinge Joint 2D stops to work properly when the game resets

I having trouble with a simple hingejoint2d who consists in a simple chain with a box attached to. It works fine until the game restart, when the game restart the box fall from the chain, but the ...
0
votes
1answer
24 views

How to check if player wrote something in the input field?

I need the player to write down his name first, before clicking play on the pre made button that unity has. public void GetNextScene() { if (InputPlayerName != null) { _playerName = ...
1
vote
0answers
13 views

“Failed to execute aapt” after importing the admob unity package

After importing the admob unity package from here "https://developers.google.com/admob/unity/start", I could no longer build the project. I tried restarting, different admob versions, resolving ...
0
votes
0answers
22 views

parametering gameObject with script

i maded a two script, one for parametering, one for execution. The workflow is: when game object with p.cs enable, do a parametering a e.cs. when click e.cs game object onmousedown activate a target ...
0
votes
1answer
12 views

How to add NetworkManager component in unity 2019

After a lot of tutorials of Unet, I'm trying to add networkManager component to an empty object. But I couldn't find it? Is it removed from this version? Hope you give me some advice because I'm ...
1
vote
2answers
22 views

what is the reason that 'randomNumber1' is always assigned by '0' though i use Random.Range(0,2)

I want to randomly assign 0 or 1 to randomNumber1, but I failed with this code. This is the code in Unity public class Practice : MonoBehaviour { public static int randomNumber1; public ...
0
votes
0answers
20 views

Wrong result on parsing toggles on build

I have a project with UI, made in Unity 2019.1.0f2. When in playmode on pc, everything works fine, but when I build an android version, nothing goes quite well - there is random toggles switching on, ...
0
votes
0answers
20 views

Hot to limit MouseDrag to a certain speed?

I'm making a 2D game where the player controls a circular sprite by rotating it around its pivot by dragging with his finger on the screen. I need a way to limit the speed the player rotates the ...
0
votes
0answers
22 views

Get the door key from player to other players

Make a racing car The map has only one card that travels randomly on the map The player must get the card to be able to cross the door and win Other players can get this card from the player when the ...
1
vote
0answers
19 views

Manual caret in Unity TextMesh Pro text?

Is there a way to manually insert a caret/ text cursor in a 3D text TextMesh Pro text field (not a 2D input field) in Unity (C#)? I'm managing the caret position myself to indicate to the user where ...
0
votes
0answers
23 views

Why only triangle seen instead of Cube in Vuforia iOS project?

I downloaded sample Vuforia iOS project. Instead of teapot, I want to rotate a Cube with texture. To create a cube having texture, I used blender and created a OBJ file with its UV mapping image as ...
0
votes
0answers
17 views

How to attach Visual Studio 2019 debbuger to unity debugger?

Before with VS 2017 when I run debugging "attaches to unity and run" Unity project starts running, but now I should run manually the project ? PS: I ticked all needed tools for debbuging in VS ...
0
votes
0answers
17 views

Unity online board game different view for different player

I am kind of new to Unity in general, i am building a 2 player online board game using Photon 2. where players camera opposite to each other. i rotate the Game Board 180 degree for 2nd player. I have ...
0
votes
0answers
36 views

What is FixedUpdate and How it runs in unity3d

Maybe this is one of the simplest question that What is FixedUpdate and how it runs, Yes I know that but with some confusion: FixedUpdate is independent from the frame rate. The time interval is to ...
1
vote
0answers
26 views

How to add momentum to camera movement

I'm trying to make the camera follow the player movement but the problem is when the condition that make the camera follow the player is not met it immediately stops which does not looks realistic i ...
0
votes
1answer
22 views

Set Unity TextMesh Pro width via script?

How can I adjust the TextMesh Pro container width/ height in Unity via script (C#)? I've tried getting the TextContainer component to set .width, but either that's deprecated or I'm doing it wrong, ...
2
votes
1answer
34 views

Visual Studio doesn't correspond with Unity

So, this happened a couple of days ago. I worked on a project in Unity (latest version) and Visual Studio 2017. I had to change computers/machines, so I archived the folder with the project in order ...
0
votes
0answers
21 views

How do you ReadPixels into a Texture2DArray?

Texture2D has a ReadPixels method which will take from the render texture. Is there a way of doing that on a Texture2DArray? I can't find the method, but I was thinking there may be a different ...
0
votes
0answers
11 views

Will changing Frequency Cap of Interstitial ads displayed to the user block InterstitialAd.Show() if limit has been reached?

Currently I have my Interstitial Test-ad running once when the player reaches Game Over. This is behavior that I don't want. I want my Interstitial Ad to show randomly maybe twice per 10 or 15 mins. ...
0
votes
0answers
27 views

Index out of range exception in c# unity project [duplicate]

Im getting IndexOutOfRangeException: Array index is out of range. Grid.updateGrid () (at Assets/Sripts/Grid.cs:59) Grid.MPGridCreate () (at Assets/Sripts/Grid.cs:43) Grid.Awake () (at Assets/Sripts/...
-1
votes
0answers
21 views

Sprites change correctly in the build on a creator computer but not on any other devices

Building the application creates a fully working .exe or .app that when run perfectly has all of the functionalities and, most importantly, changes the sprites correctly. The sprite change mentioned ...
0
votes
0answers
9 views

Unity AdMob Failing to launch on IOS

I am using version 1.2.117 of AdMob libraries. The build looks okay, and tripled checked the configuration it correctly gets copied into info.plist for IOS. However on the application load event I ...
0
votes
0answers
35 views

Why isn't my 2D bullet's collider colliding with anything?

I'm trying to make a platformer game that uses 2D sprites in 3D space. For some reason, though the bullet the player shoots fires correctly from the GO that's a child of the player, it won't collide ...
1
vote
1answer
39 views

How can I rotate an object from on axis y on two directions randomly?

I want to create effect like the object is looking around. Like it's inspecting around. In this he is looking at a window so the idea is to make like he is looking the view outside. This is a ...
0
votes
0answers
51 views

Our app crashes only when downloaded from Google Play. Why?

I have a crash during the (unity) app launch that only appear when the app is downloaded from the Play Store. I ran plenty of tests and I observed this crash even with an empty Unity project. I have ...
-1
votes
1answer
60 views

Passing a variable as generic type [duplicate]

I'm working on an exercise in C# in Unity. Briefly: I'm creating an abstract class that can't be instantiate with the new keyword. So I'm creating a static method that receives a Type variable as ...
0
votes
0answers
19 views

Spherecasting not hitting where I want it to

I am sphere casting a 4 unit radius sphere, 2 units in front of the player and bool returns true for a specific interval of far distances; from 5 units in front of the player till max distance (radius ...
0
votes
2answers
49 views

How to ensure user selects the top card in a deck of cards in Unity3D?

I've got a deck of cards which I've placed as sprites in my Unity game (each card as an individual sprite). They're positioned as a messy pile.... how can I ensure that the top card in the deck is ...
0
votes
0answers
27 views

Should object that creates ads (e.g. Banner, Interstitial) be a singleton?

Following on through the Google AdMob read on implementation for the varying ads: https://developers.google.com/admob/unity/banner https://developers.google.com/admob/unity/interstitial Right now I ...
0
votes
0answers
16 views

How is the commit memory of unity game process is determined? [duplicate]

If process's private memory indicates how much memory it is currently working on, What exactly the commit memory of the process indicate and how it is determined?.
0
votes
2answers
52 views

How to destroy gameobject that is below some height

I'm trying to destroy any gameobject that is under some height (let's say -5). I tried foreach method that takes all gameobjects and than compares it using if. If comparison is TRUE, then there is ...
0
votes
0answers
9 views

Unity ads wont load 'Display' ads

For some reasons, 'display' ads never loads. But ads loads if I decide to check the 'video' ads at the dashboard (which means that the code and Ids are set correctly). So everything stops working if '...
0
votes
0answers
13 views

Initialising JUCE on Android for Unity3D

I'm trying to build an Android Shared Library for Unity3D that with the JUCE Audio framework. I'm using c++ with the Android NDK. I'm getting it to build but I'm struggling to get JUCE going. To ...
0
votes
0answers
16 views

My mobile game gives a “Unfortunately stopped” working message on start

As I open my game application a message popped up saying "[app name] has Unfortunately stopped". The game works in unity and via the remote. but as soon as I build it and open it on my phone it stops ...
0
votes
1answer
24 views

Keep on receiving an argument of of range exception when there shouldn't be one? [duplicate]

I recently tried to change the code of one of my scripts of a game I'm working on in Unity and I keep on getting an argument out of range exception error message thrown at me for the ...
0
votes
1answer
23 views

Assets\mqtthandler.cs(59,26): error CS7069: Reference to type 'IPAddress' claims it is defined in 'System', but it could not be found

I made a MQTT Client using the M2MQTT Library in Unity for Microsoft Hololens but i can't build the Unity project with error "Assets\mqtthandler.cs(59,26): error CS7069: Reference to type 'IPAddress' ...
1
vote
1answer
47 views

How to end game automatically in Unity?

I followed a tutorial on YouTube (available at this link) to show how to drag/drop items in my game. Does anyone know how I could adapt the code to have the game automatically end or change scene when ...
0
votes
1answer
10 views

DXT1 compressed textures are not supported when publishing to iPhone

plaise help me this error in unity 2019.3.0a5 any solution unity developper Debug log : DXT1 compressed textures are not supported when publishing to iPhone Resources/unity_builtin_extra ...
0
votes
0answers
17 views

How to fix bug on left to right to go too much left when collided with obstacle?

I have one runner where i when colliding with other obstacles going forward and when i go left and right the player is moving too much up but that happens only when i try to move left and right when ...
-4
votes
0answers
55 views

Decompiling a .NET assembly to a specific C# language version

I have decompiled a dll file for a game developed in Unity 5.6.7. It's compiled with Unity's version of Mono 2.6.5 which is more or less .NET 3.5 and C# 3. When I have the code I want to be able to ...
0
votes
0answers
12 views

How can I authenticate with google cloud in Unity?

I'm trying to use google automl object detection in a Unity project. Here is the google curl command example: curl -X POST \ -H "Authorization: Bearer $(gcloud auth application-default print-...
0
votes
0answers
18 views

What is this error in build adroid and build app bundle in unity 2017.4.17?

I get some Error when build android in Unity 2017.4.17 I have not problem with unity 5.3.4p3 but google play do not accept my games and it wants x64 so I change to unity 2017.4.17 and in gradle and ...