Questions tagged [unity-game-engine]

Unity is a cross-platform game engine by Unity Technologies.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

About Gravity RigidBody2d in unity

I'm making a small 2d game on unity. I have a character that cast a bright spell prefab when I press enter and I have dozens of others enemies I wish that when the magicprefab hit some enemy his ...
Manuel Neto's user avatar
0 votes
0 answers
4 views

AR shows blank instead of video

so I when I test the AR in Unity everything works properly but when I export it to apk and test it on my phone the video doesn't play, it just shows as blank quad. (https://i.stack.imgur.com/UiZ5S.jpg)...
WojtekTheCat's user avatar
-1 votes
0 answers
6 views

How good idea, draw a grid with GL?

For the level editor, I need a grid to which objects will snap. The grid is needed both rectangular and radial. I want full control over the grid, its size, number of segments and color right inside ...
kuschanow's user avatar
0 votes
0 answers
20 views

How do I prevent my enemy from sometimes stopping when hitting a wall? Probably caused by clipping and bumping into corners

How do I prevent my enemy from occasionally stopping when hitting a wall? I believe the problem is that they are clipping into the wall and are then unable to move. Another problem may be that when ...
Andy Ries's user avatar
0 votes
0 answers
13 views

The built version of my Unity android game works at a much different speed than the inspector version of my game

I don't have any special settings enabled, so what can be the cause of this?
CheeseGunner's user avatar
0 votes
0 answers
4 views

Is it possible to fit 8.2 million of triangles in a VR scene for a standalone HMD?

I'm making a VR application where a 3D map is displayed. I'm using Unity 2021.3.22 and XR Interaction Toolkit. I've been able to represent buildings by using GIS data. The problem is that the number ...
Antonio Serrano's user avatar
-1 votes
0 answers
14 views

Teamcity error message in a build with Unity

We have been for some time today trying to do some builds from an Unity project in Teamcity, but we are getting the following error message: jetbrains.buildServer.agent....
wallace84's user avatar
0 votes
0 answers
12 views

How can I dynamically generate a whole world in Unity using a database? [closed]

I just begin creating multiplayer game. I am using unity 3D engine and netcode. I would like to ask You a few things. Firstly, i want to generate whole world dynamically from database. I would be ...
stefanekhere's user avatar
0 votes
2 answers
22 views

Simultaneous button pressing for mobile devices Unity

I'm making a 2D game for mobile phones in Unity. I have four buttons from Boxcollider and Rect. I need an event where I can drive forward and turn at the same time. This event doesn't work for me: ...
Geo367's user avatar
  • 1
0 votes
0 answers
9 views

Setting a callback in a Jack Client causes Unity to crash

i am writing a Unity script which serves as a JACK client. For this, I need to register a callback function, in which the audio signal gets processed. Since I use managed C# code, I create a delegate ...
Benni W's user avatar
  • 41
0 votes
1 answer
27 views

Unity has a documentation problem about Time.fixedDeltaTime?

In Unity’s Time.fixedDeltaTime documentation it states that "Unity does not adjust fixedDeltaTime based on Time.timeScale." But in Unity’s Time.fixedUnscaleDeltaTime documentation it states ...
StarterOfStudent's user avatar
0 votes
1 answer
27 views

Unity Scene working correctly in Simulator but not loading correctly on Android

I have created a Unity Match 3 game, which I want to export to Android. It works on the web, it works when you run it on Windows, but as soon as I export it on Android it doesn't work anymore. I have ...
Felpower's user avatar
0 votes
0 answers
7 views

How can I constrain player movement relative to the level in my AR game using Vuforia and Unity?

I am currently developing an AR game using Vuforia, and I have encountered challenges in implementing smooth character movement. Even slight camera movements result in the player being displaced ...
Pablo Rodrguez Gmez Parogo's user avatar
0 votes
2 answers
40 views

the notes of my rhythm game are not spawned at the exact time they need to

I'm creating a rhythm game for a university project and I'm using a midi file to spawn the notes. Before the song stars, the game interprets the notes in the file as notes for the game and assigns ...
Raffaele Naccarello's user avatar
0 votes
0 answers
20 views

Unity two audio listeners on a scene filtering audio sources

I am using the Unity WebRTC plugin (https://github.com/Unity-Technologies/com.unity.webrtc) and I need to send multiple audio tracks. For example, I want to send the Spanish version of the received ...
Congobill's user avatar
0 votes
0 answers
10 views

Unity: Why does Addressable detect prefab changes when I only changed the attached monoscript?

Addressable detected prefab changes when I only changed the attached monoscript For example: I have a monoscript attached on LevelView prefab. whenever I change this monoscript(add a line) then run ...
Tom Tao's user avatar
  • 11
-2 votes
0 answers
22 views

Is there a way to keep the mobile keyboard open when selecting different input fields in Unity using C#? [closed]

Every time I select the second input field, the mobile keyboard closes and then reopens. I want once the mobile keyboard opens and then selects a different input field, it should remain open. Also, I ...
Abhishek's user avatar
0 votes
1 answer
22 views

How to Sort a List of Cameras by a Script in Unity using OrderByDescending?

I'm trying to make a list of cameras that sorts itself based on a number held by a script that each camera has. Why is this code not functioning? cams = cams.OrderByDescending(cams => cams....
Wolde North's user avatar
0 votes
1 answer
13 views

How can I make my Unity cameraController move overhead or below instead of clamping to 90/-90 degrees?

I am messing around with a cameraController in Unity and trying to make the camera "fly" around. To this end I need to camera to smoothly go over head and keep on the track its going without ...
Nick Green's user avatar
0 votes
0 answers
9 views

OnMessageReceived Not Working When the app inactive in the background

When I completely close the app, receive an alarm, and click it, it goes into OnMessageReceived well, Conversely, if you leave the app inactive in the background and receive an alarm and click it, it ...
Roy's user avatar
  • 13
0 votes
0 answers
18 views

How can I achieve prioritized x,y movement for a 2D top-down player in Unity using C#?

I am trying to create 2d top down player movement like in Pokemon. only x,y movement, no diagonals tiles based movement prioritizes the most recent key pressed tile based movement isn't hard, there ...
keisasuga's user avatar
-2 votes
0 answers
31 views

Unity+C#: How to avoid NullReferenceException when object is not null? [duplicate]

Essentially, I have these two components in unity, one is on a gun which tries to send a message to a HealthManager in the parent of the collider used in gun collision checks. But when I try to update ...
FyreWolf's user avatar
-1 votes
0 answers
17 views

Unity make text appear on button click and disappear after 5 seconds

I'm trying to make a UI text element appear on button click and then disappear after 5 seconds. However, the text does not appear on button click. Code attached below for reference. Where am I going ...
hailhydra's user avatar
0 votes
0 answers
14 views

Collision2D not working in unity 2D even though everything is set equal to true and tags are set

private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.CompareTag("escape") && gm.escape) { SceneManager.LoadScene("Volcano1"); ...
AmoghUrs's user avatar
0 votes
0 answers
16 views

How can I resolve the 403 error when uploading images from Unity to my S3 bucket?

AWS keep sending 403 error when I'm trying to connect to my S3 through Unity. I configured all right policies and rules and everything to be able to send my images from unity to my S3 bucket. On ...
dhiegolucio's user avatar
-1 votes
0 answers
9 views

How to call an EventSystem trough another EventSystem - Supported Events System Unity

Can I activate the OnDrag and OnEndDrag trough the OnPointerClickhandler? Like I have an Idea where I set a bool variable in my code and if is false start dragging if true stops dragging. I tried to ...
Jamelaumn's user avatar
0 votes
1 answer
19 views

Player Rigidbody2D not adding force(unity)

public void Continue9() { player.dialouge1 = false; dialogue = true; index += 1; switch (index) { case 21: conversation3.SetActive(true); text3.text ...
AmoghUrs's user avatar
-2 votes
1 answer
25 views

How to save editor window values after code compile or editor window close?

I am using Unity UI Toolkit to create an editor window, the problem is when I make a change in the code and unity recompile it, I lose every thing (values) in the editor window. I am using a listview ...
ouzari's user avatar
  • 387
-5 votes
0 answers
36 views

How do I get the name of the system's currently logged in user?

Okay so I'm looking for a way to capture the name of the currently logged in user and user that for ingame diaglouge similar to earthbound and oneshot. The only solutions I've found so far are string ...
TheName'sAndounuts's user avatar
-1 votes
0 answers
12 views

Omni sharp errors in vscode when trying to edit/use a cs file for unity

I recently installed unity and wanted to use vscode as the editor, so i installed the cs extension and .net SDK because it wasn't installed then set the path of SDK to the correct path in vscode ...
RiskyINIT's user avatar
-1 votes
0 answers
13 views

How can I include specific files in the Visual Studio project generated by Unity?

I have some files in the Assets folder of my Unity project e.g. Assets/CompanyName/GameName/Data/Resources/HazardTemplates.csv. How can I tell Unity to include these files in the Visual Studio project ...
ekolis's user avatar
  • 6,098
-1 votes
0 answers
6 views

Unity Gradle build fails with latest Google Mobile Ads SDK

Unity Gradle will not build with the latest Google Mobile Ads SDK. I am using Unity 2019.4.1f1 I tried to upgrade the Gradle but it did not work to 5.6.4 from 5.1.1 but it did not work. The previous ...
Newbie's user avatar
  • 1
0 votes
2 answers
21 views

The script is still being executed even after Destroy() was called

In the following code, when the player health reach 0 the game object is destroyed by using Destroy() method. But when the game play, the print() statement sometimes produced -1. I tested several ...
Nyein Chan's user avatar
  • 1,215
-2 votes
0 answers
21 views

How to resolve 'canceled error' while logging into Play Game Services on Unity using C#?

I'm trying to login to play game services in unity. but in my phone I get canceled error when trying to login. Tried with my own keystorei, correct fingerprints (triple checked). but still same error ...
Yusuf Ayvaz's user avatar
0 votes
0 answers
19 views

Movement of an object in a straight line towards a moving object

I have a 3d object that is moving towards another object - a target that changes direction along the y axis. The problem is that when the target changes direction, the 3d object starts moving in an ...
Operator's user avatar
0 votes
0 answers
10 views

How to loop particle systems moving from one point to another with dissapearing in Unity?

I want to make a particle system in which a certain number of particles fly in one direction and when they reach the border they disappear, after the last one disappears, all the particles fly back ...
Kuji's user avatar
  • 91
0 votes
0 answers
13 views

QR code tracking on Android with MRTK3: IL2CPPLinkage error when building library

Unity Building Library failed, IL2CPPLinkage error, with MRTK3 and QR Code Tracking on Android I tried to track a QR code with MRTK 3 and Andriod. have used this attachment The following error occurs ...
spirit's user avatar
  • 3
-3 votes
0 answers
46 views

C# Unity Prefab Use button to delete record from database

I have a scene where a scrollview is present. In this scrollview I load a prefab with a TMP_Text, an Inputfield and a Button per row. The inputField holds the corresponding id in the database. I want ...
YouT's user avatar
  • 1
-1 votes
0 answers
13 views

how to solve my problem with photon in unity?

the problem with the photon is in unity. the character does not appear at the points indicated in the code, but in the void. there are no errors in the console. Tried in a new scene, but there is the ...
Aflay's user avatar
  • 1
-1 votes
0 answers
8 views

The keypad doesn't dismiss automatically when I tap outside the textfield on iOS. UI Toolkit

I was testing the Unity UI Toolkit system by Unity and created many UI elements including TextField. When I made android and iOS builds, the keyboard doesn't dismiss automatically when I tap somewhere ...
Manish Kumar's user avatar
-2 votes
0 answers
16 views

Unity Java Plugin: error type or namespace name 'com' could not be found

I'm developing a game for Android with Unity. I want to include voice commands, so I created a Java plugin with the voicce recognition functions which are called from a C# script. I saved the JAR file ...
CheeseHead's user avatar
0 votes
0 answers
21 views

Can't Find Children After Drag and Drop to New Parent in Unity

I am able to move a transform with scriptable object "note" to a new parent "note slot" and have it appear as a child in the editor, but I can't find it using code. It says there ...
Bellatorpoeta's user avatar
0 votes
0 answers
13 views

Can VR and NVR camera put into a same scene after switching a scene?

I have tried to run a unity scene which consist an VR camera and NVR camera that can switch to each other when mount/dismount a VR headset. It works fine first when testing, but this feature fails to ...
Chi Yan Koo's user avatar
0 votes
1 answer
37 views

Cannot set image of image object dynamically

I'm trying to make an inventory system. When the player presses tab, a UI opens with three images. I dragged all three images from the Hierarchy into an Image array, and I want to iterate through this ...
ScuzzyCoder's user avatar
-1 votes
0 answers
14 views

error when trying build my markerless project in unity 2021

a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade site:forum.unity.com i made a markerless project, while building i got this error, i have tried several ...
dammm's user avatar
  • 1
0 votes
0 answers
27 views

My function isn't changing text or image sprites in unity 2d

public void Continue9() { dialogue = true; index += 1; switch (index) { case 21: conversation1.SetActive(true); text1.text = "No... Not farewell&...
AmoghUrs's user avatar
0 votes
0 answers
21 views

Unity 2D - Character Flipping at Wrong Time

After following a tutorial for a wall jump and wall slide mechanic in my 2D platformer, I came across a bug. The player uses raycasts and variables to check if the character is wall sliding. When the ...
Mike the Scripter's user avatar
-2 votes
0 answers
23 views

How can I improve my beginner Unity game code using the character controller? [closed]

I just started learning game dev in unity and this is my first proper project i have really put effort into and the code i am using is from my character controller. I have used a few tutorials such as ...
julian cruz's user avatar
-1 votes
1 answer
35 views

Why is 3D mobile game lagging after touching the screen?

I am creating a 3D mobile game in Unity where a ball rolls, and the user stops moving platforms by touching the screen. The problem is that the game lags for a while after about 0.5 seconds every time ...
Mikołaj's user avatar
0 votes
0 answers
19 views

Internal build system error. BuildProgram exited with code 137 - Unity Editor

I have just formatted my iMac with Ventura 13.4 and installed latest version of Unity Editor 2021.3.25f1. As I opened my project I was started getting this error: Also Unity Editor is opened in the ...
Siddharth's user avatar
  • 4,122

1
2 3 4 5
1484