Skip to main content

All Questions

Tagged with
0 votes
3 answers
860 views

Unity performance drain of non-visible UI

I've got a game with lots of menus. The menus have their own scripts which I don't neccessarily want to stop, just because the user can't see the menu. This is why I currently just translate the ...
0 votes
0 answers
7 views

Unity Editor will consistently freeze every 5-8 seconds for up to 5 seconds

I've been working on a project on my laptop for a few weeks now and occasionally (seemingly randomly) I will launch Unity and the Editor will undergo this strange pattern of consistent freezes. It ...
0 votes
1 answer
13 views

Working on a 3D audio visualizer project (Unity) and I can't convert Vec3 to Float, what am I doing wrong?

Noob here... I am working with a c# script in Unity which was originally written to scale an object on 2 separate axes (X/Z) using 2 separate variables (based on audio input). The change I am trying ...
0 votes
1 answer
28 views

Area of damage, where an explosion happens and deals damage to all enemies exactly once with Physics2d.OverlapCircleAll(...), but doesnt work

As in the title, I am trying to use overlapcircleall to deal damage to all enemies exactly once, but sometimes works correctly, but sometimes the damage is applied multiple times to the same enemy, ...
0 votes
1 answer
30 views

Calculating angles and comparing them to apply logic

I'm trying to make a grappling hook style game in Unity. When the rope collides with an object, I move the anchor point to that position and save a List<Vector2> of positions. I'm at the point ...
0 votes
0 answers
25 views

Multiplayer game in Unity riddled with seemingly unsolvable errors: type or namespace Unity Transport not found, and scripts not attachable to gameobj

I'm making a multiplayer game in Unity, and I've started by implementing the multiplayer feature itself. After making good progress, I get an error telling me that type or namespace UnityTransport can'...
0 votes
1 answer
24 views

Unity State Machine suddenly refuses to react to player input

I have been attempting to create a souls-like character controller in Unity, using this tutorial with the use a Finite State Machine using the following tutorial. So far, everything has been working ...
0 votes
0 answers
15 views

Unity Application crashing on Android?

I've been working on an application in Unity. It works perfectly fine for iOS devices but once a build has been put onto an Android device it begins crashing after about a day of being on that device. ...
0 votes
1 answer
29 views

Uploading a video(file) through file explorer in Unity WebGl

I'm developing a game on Unity WebGl. I have a part that user has to upload a video through file explorer, then I have to send it to server. I don't have to play it in unity. I just need to get the ...
1 vote
1 answer
28 views

Float values get rounded creating a Hex Grid in Unity

My code generates a grid with a specified width and height and Instantiates a "hexTilePrefab" at the calculated floating point positions. The prefab has a class "HexTile" attached ...
1 vote
0 answers
89 views

Best logging practices

I'm Using C# with Unity, I'm attempting to organize my debugging. The way i have it done now runs into the problem of stacking up the more "Conditional"s i add. Is there a way i don't know ...
1 vote
2 answers
767 views

My PointerClick function gets fired twice

I have an OnPointerClick() function that sometimes gets fired twice if I keep clicking on multiple buttons at a stretch, even though I have pressed this button only once. This is happening in the new ...
0 votes
1 answer
41 views

Unity 3D: Instantiating an object after setting it into a list isn't consistent

I am making a game where people walk around catching cats then releasing them into a safe spot. Here's all the relevant code: using System.Collections.Generic; using Unity.VisualScripting; using ...
1 vote
0 answers
18 views

SignalR Client implementation in unity works in editor but not in Android

I am using signalR client in unity for a real-time Android game. So, when i run game in Unity editor, everything is fine, But when i built it for android, i realize that it didn't connect to Hub ...
0 votes
1 answer
133 views

How to scan and detect only as single plane at a time in Unity ARkit?

I was testing UnityARhitTestExample scene.The problem is when I try to detect a horizontal/vertical surface many planes are detected.It gives a awkward look when opening the app.Is there a way to ...

15 30 50 per page
1
2 3 4 5
2887