Questions tagged [unity3d]

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

0
votes
0answers
4 views

How to implement Google Sign in through Firebase in Unity?

i want to implement the google sign in through firebase in unity. I dont want to put email and password manually, rather then i would like the implementation in which a dialogue appears and ...
-2
votes
0answers
7 views

How to make gameInstance style hidden in WebGL Unity?

Trying gameInstance.style.visibility ='hidden'; Not Working (gameInstance.style is undefined). What should i do?
0
votes
0answers
13 views

How to get download progress using UnityWebRequest to download Asset Bundle from server?

I still new using UnityWebRequest to download and load asset bundle from server container. The problem is the value for the download progress always 0. How can I get the value for download progress? ...
0
votes
0answers
4 views

How to enable Steamvr Menu functionality on Controller button click to enable?

click to view ImageHello i need some help about Steamvr Controller menu button click to enable panel i marked controller button i need to click that button to enable panel how help me, Advance Thanks
0
votes
0answers
6 views

How get ARReferencePoint TrackableID in Unity's ARFoundation

How get TrackableID on an ARReferencePoint. I don't see this property exposed on the point or its manager. https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.0/api/UnityEngine.XR....
-2
votes
0answers
18 views

How to fix Facebook integration with firbase and googleMobile Plugin

Stuck with the facebook unity plugin integration. I have been working on it since yesterday and did not find any workaround. I am using facebook-unity-sdk-7.15.1 although I have also tried the ...
0
votes
0answers
13 views

Building Unity from Batch file using Node.js

I have my the command working when i type it into a regular command prompt. But when i run the command from a batch file using Node.js (child_process) i get a error. I compared the the log files and I ...
0
votes
0answers
18 views

Error: Program type already present: com.google.android.gms.common.api.internal.zzb

My Unity project had already imported firebase SDK, and after I imported Admob SDK and click Android Resolver at Unity then I can't build apk successfully. the error is "Program type already present:...
0
votes
1answer
27 views

Migrating existing Unity project into new one

I wish to copy my existing Unity project into a new blank Unity project. It appears all the object references and many scripts are not configured properly/present in the Hierarchy in my scenes. I ...
0
votes
1answer
12 views

“Failed setting triangles. Some indices are referencing out of bounds vertices.” when the the edge index is greater than the number of vertices

I'm trying to get the the marching cubes algorithm to work in unity, but when I try to add triangles to my vertices based on a triangulation table I get the error stated in the title If I try ...
0
votes
1answer
23 views

How to make GUI.Box corners rounded in Unity programmatically

I don't know much about C# and Unity. I just follow the script in Vuforia's Unity Cloud Recognition tutorial, which creates the GUI Box programmatically. So I guess all the stying solutions using the ...
0
votes
1answer
29 views

How can i respawn falling platform

After a couple of tries platform doesn't to its original position, but then it gets deleted and I don't know how to fix it. public class FallingPlatform : MonoBehaviour { private Rigidbody2D rb; ...
0
votes
0answers
29 views

Closing a User-Drawn Circle

I have done a lot of research on the topic, but I don't seem to have the right questions to ask. I don't know what to call the problem I'm trying to solve. Thank you in advance for any help. The ...
0
votes
0answers
21 views

Trying to move slider based of of percentage of screen moved across

So I am trying to modify a slider's value based off of the percentage of the screen that you have moved across. I want if you are at a x pixel less than 100 the slider value will be 0 and if you are a ...
0
votes
1answer
29 views

Changing the 2D array value Tetris Style

I have a 2d boolean array that checks if the row of the columns are all true. right now I want to check that if a row is filled with all true. I want that row to go all false. and then I take the ...
0
votes
1answer
22 views

How to detect objects with with touching each other

I need to be able to detect if 2 separate object are touching each other. I have no idea if there is a specific piece of code to do this. so i made some code that detects if the object the code is ...
-1
votes
1answer
16 views

Resetting animation frame to initial position

Hi I am using unity3D 2018.3 My game is a 2D animation based game and i am using a single scene to control levels. it is using different panels to show levels. I have tried the following code but it ...
-5
votes
0answers
35 views

The modifier 'private' is not valid for this item [on hold]

I am getting the below errors when trying to input my code to Unity, can anyone lend a hand? I am using Visual Studio for Mac. Assets/Scripts/FindMatches.cs(38,9): error CS0106: The modifier '...
0
votes
1answer
25 views

Unity 2D collision detection with kinematic rigidbody

Just starting out with Unity so please be patient :) We are building a Zelda like game - top down, no physics / gravity, tilemaps for the map. We don't want to use the dynamic rigidbodies because of ...
0
votes
0answers
26 views

Formula to make the ends of the arms of a spiral galaxy less dense

i wan't to make a spiral galaxy in Unity 3D using C# ( i use a derived logarithmic spiral ) but i wan't to set the end of the arms less dens than the middle. I want this: I have this result ...
1
vote
1answer
47 views

Unable to make timer loop after hitting zero

I'm working on a timer that counts down from a set number and when it reaches zero, it should rest back and start again. private int timer; public int duration; private bool timerRunning = true; ...
0
votes
1answer
29 views

Is there a better way to write this top down car mdoel

I Am writing a top down car drift game, where i want to make the car move in a circle and user controls the radius of the circle with the steering, basically straight steering is a straight line and ...
-6
votes
1answer
42 views

How do I make a transform Rotate n times per second?

I want it to spin at speed from 0 to very fast. But if I'm changing the value of the spin to 10 it's almost not moving and 200 make it move slowly. 2000 make it move fast, but how fast is that? If I ...
0
votes
0answers
62 views

How can I store emoji from my Unity game into a database?

How can I store emoji from TextMesh pro in a database using the WWW class to post the string containing the emoji as a parameter in the URL? I'm having a problem getting the emoji from a TextMesh Pro ...
2
votes
1answer
40 views

How can I pause spawning in a coroutine until all the spawned objects are destroyed?

I just don't know how to write the if part. The rest is just instantiate position and quaternion stuff.... Probably. I want to know if the GameObject rocketspawnblue and GameObject rocketspawnred ...
0
votes
0answers
9 views

Custom Tile interaction between tilemaps

I have a two tile maps. One is for walls and one is for the floor. The game is top down. I want to be able to paint the floor and then when I paint the walls I want them to align with the floor ...
2
votes
1answer
25 views

Can't see plane in Unity

I am working on a game where there will be two different planes and the player will move between the two planes (1st person perspective). I put the main camera in between two different planes that ...
0
votes
0answers
21 views

Edit Imported Prefab?

I imported an .fbx file from blender to Unity and it is shown as a prefab but with slightly different icon. Is it really a prefab? Why I can't edit any of its properties? Also, how do I change its ...
0
votes
1answer
15 views

Mesh analysis Shader in Unity like Blender Mesh analysis in runtime

Is it possible to recreate the mesh analysis effect like in Blender with a Unity shader? Like these ones: https://docs.blender.org/manual/en/latest/modeling/meshes/mesh_analysis.html Thanks
0
votes
0answers
13 views

Setting-up ARcore with Vuforia

Hi im new to Unity3d and AR, and i need to setup Arcore to use with vuforia. i already have the " core-1.7.0.aar " file in Assets/Plugins/Android folder and i already set the AndroidManifest.XML in ...
0
votes
1answer
33 views

GameObject not synced with the colider

the box shape collider dosent fit the cup and I've tried making the image different dimensions but it dosent work
-4
votes
1answer
70 views

How to check that collection of booleans is all true?

I tried to solve this problem by myself ... to no avail. My goal is to figure out whether a collection of booleans (InRightPosition) is true, if each InRightPosition is true then --> ...
1
vote
0answers
15 views

Firebase Unity SDK: realtime database not working in editor in Unity 2019

I have a project using the Firebase SDK which works fine in Unity 2018, but after upgrading to 2019, it throws a WebSocketException when running in the editor and trying to access the realtime ...
0
votes
0answers
28 views

Cameras rotation is too slow

I have a game object that moves and rotates. I want the camera to stay behind the object all the time, so when the user presses w, it will look like the gameobject moves forward. This is my skript ...
0
votes
1answer
31 views

Fetch data at a given specific time?

I am creaiting a leaderboard for my game using unity + firebase realtime database. How can I determine the winner of the week at a given speific time to announce it to players? For example, every ...
0
votes
0answers
35 views

Rotating object

I have two objects in scene..One is Cylinder and other is cube. How to rotate cube around the Cylinder..But the end towards the cylinder should not move from that place..Note that the cylinder is ...
-3
votes
1answer
36 views

Slowly rotate an object in the z-axis

How to slowly rotate an object in the z-axis? I have an object at an angle z=0 and I want it to move to z=100. How do I do it so it slowly rotates in like 5 seconds? public Vector3 ...
-1
votes
1answer
19 views

How can I change the screen size in Unity?

Currently I am working on a Unity project. I started it on version 2018.3.6f1. The other day I installed version 2019.3.0a2 and this changed the screen size so now I have a white background at each ...
1
vote
1answer
39 views

How can I switch my code from UnityScript (JavaScript) to C# (csharp)?

This script(code) it works fine in UnityScript, but now i want to switch it to C#. This is what I've got so far. I think there is a problem at "transform.position" and generating a "random position" ...
0
votes
1answer
30 views

Trying to merge two shaders (double sided and cross section) but getting syntax error

I am trying to "merge" the code of two shaders: The first one is a double sided shader for Hololens from the Microsoft Holotoolkit: // Copyright (c) Microsoft Corporation. All rights reserved. // ...
0
votes
0answers
10 views

I want to use Gradle for my unity3D project, but I have no “Build systems” option under my “file->build settings” menu

I have installed Android build support AND the Android SDK/NDK on Unity3D. However, the build system option is missing! All other build settings options are there. Am I doing something wrong? I have ...
0
votes
0answers
23 views

Why is MapBox lagging in Unity VR?

I am trying out the MapBox SDK for Unity. https://www.mapbox.com/unity/ This provides a 2D map where you can zoom in and out to preview different levels of detail.This honestly works like a charm. I ...
0
votes
0answers
23 views

How to code a shader that smooths out imported geo normals in Unity?

been coding some shaders in Unity. I am making one with an outline feature and I used the info in this tutorial vid as a base: https://www.youtube.com/watch?v=pMq--FUR5VE Below's the Outline pass of ...
0
votes
0answers
19 views

Unity doesn't resolve with Admob

I am trying to add admob to my unity game, but the resolve step is not working PS:I am using a project provided by google to try admob so the problem isn't from the project. I am using unity 5.0.2f1 ...
0
votes
1answer
50 views

Break out of while loop in Unity? [duplicate]

How do I break out of this while loop which is inside a coroutine? The debug message appears continuously even after the value is reached. void Start() { StartCoroutine(StartFadingIn()); ...
-4
votes
0answers
29 views

Can't solve the Xcode undefined symbol error

I'm new in Xcode and I need some help I was developing an ios app when I opened the Xcodeproject built by Unity and tried to execute on my iphone6s. It showed up some undefined symbols error I ...
0
votes
1answer
14 views

Unity animation changes position after repositioning or resizing sprite

I created a simple animation that changes the sprite's position x. It works well, but when I reposition the sprite or resize the sprite using the editor, I see that the animation's position values ...
0
votes
0answers
32 views

Unity problem with collision - collision doesn't work after specific collision

I have multiple GameObjects in my Scene. There is some Package, player need to collect this. BoxCollider2D is attached to them. Here is the configuration : Here is the player's configuration: ...
1
vote
0answers
17 views

Problems with playing videos ARCore

I followed the example code listed on the AugmentedImageController for ARCore unity on github at: https://github.com/google-ar/arcore-unity-sdk/blob/master/Assets/GoogleARCore/Examples/AugmentedImage/...
0
votes
1answer
14 views

Unity: accessing generated SVG sprites programmatically

I imported an SVG image (acd.svg) in my project that sits in "Resources/svgs". Selecting the SVG, the Importer settings opens in the Inspector where I have selected the option "Vector Sprite" as "...

http://mssss.yulina-kosm.ru