All Questions
Tagged with c# unity-game-engine
43,296
questions
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
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'...
1
vote
0
answers
17
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
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 ...
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 ...
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
40
views
OOP usage in Unity Game Engine
i've started to learn Unity and we were always using MonoBehaviour Parent and Child Classes. After that i realized that we need to use OOP with our projects. I know how can i create classes and ...
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 ...
1
vote
0
answers
27
views
How can I align my player to a ledge (Unity 3D)?
I am working on a game with a grapple system similar to the Batman Arkham games. Right now, you can target a point on a ledge and teleport to it (Teleporting is just for testing) and then hang on it. ...
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 ...
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 ...
0
votes
0
answers
21
views
Unity Cloud Save blocks game
Hey I am trying to use Unity Cloud Save feature.
I've added SDK for Cloud Save and Authentication and Linked Unity Project. I am also using Firebase so there is also configuration for it.
All fun ...
0
votes
0
answers
19
views
How to detect the proper World space UI element's position using GraphicRayCaster?
Good afternoon. I am trying to interact with UI elements within a worldspace canvas due to Unity 2022 LTS not supporting interaction via the New Input System when using a locked cursor. The issue I am ...
1
vote
0
answers
28
views
Generating a different zipcode after each spawn in unity
Sorry for terrible grammar but I've been working on a Conveyor Belt project for the past month and been having problems with the parcels(Boxes) not having specific zip code after each spawn. I'm still ...