Questions tagged [unity-game-engine]
Unity is a cross-platform game engine by Unity Technologies. Questions should be about programming with the game engine and not usage of the graphical interface. Questions about the usage of the graphics interface are off topic.
unity-game-engine
79
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
10
views
Cannot access 'com.unity3d.player.IUnityPlayerLifecycleEvents'
I am trying to export an Android project from Unity to use XR in an Android application. When I copy the project over from Unity, I am unable to reference com.unity3d.player....
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
21
views
unity accessing child global position from another child, returns local
Hi, I'm trying to instantiate bullets from weapon script. I have empty object (weapon child) that is a bullet spawn point, and weapon has it's link. Everything works perfect, except transform.position ...
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
9
views
Whisper for Unity does not work on the APK
Im developing an app with mupliple scene in Unity 2022.3.11.f.1 for the Meta quest 3. Using Whisper (https://github.com/Macoron/whisper.unity), it only works using Meta Link. If I build and run the ....
0
votes
0
answers
12
views
How to create projectiles in shared mode in Photon Fusion 2
I was developing multiplayer game by following Fusion 2 Shared mode tutorial (on unity)
https://doc.photonengine.com/ko-kr/fusion/current/tutorials/shared-mode-basics/overview
I'm going to make an ...
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
12
views
MRTK2 Interactable I Which Receiver should I use?
So I am trying to create my own button in unity with MRTK2 for the Hololens2 but my problem is, that I do not know which receiver I should use in the interactable component. Usually I use ...
0
votes
0
answers
8
views
How to add object to prefab table in runtime - Photon Fusion 2
so i want to add objects to prefab table in runtime, and I did what website told me to do (official website), but I don't know how to call the method to actually add it.
I tried with
runner.Spawn(...
0
votes
1
answer
33
views
Zenject's LinqExtensions.cs failing in WebGL build
I have a game made in Unity 2021.1.26f1 which relies on Zenject. It runs great in the editor and in a Windows build. When I build for WebGL, however, I receive the following error:
System.Linq....
0
votes
0
answers
17
views
Unavailable invalid Firebase Auth Quest 2 [closed]
I'm having a problem launching Firebase on the Oculus Quest 2. When starting the app on the Quest2, the following firebase auth message appears: "unavailable invalid".
The app works on ...
0
votes
2
answers
36
views
Can I stop Unity remembering data that has been erased from PNGs?
I have been working on a texture for an avatar to put in VRChat using Blender and Krita.The texture looks completely fine when in Blender but when I import the PNGs to Unity, issues occur. The main ...
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
votes
0
answers
15
views
Models are not rendering the skins correctly [closed]
Im trying to bring MC Skins into Unity, but when I import them from blender the skins are all messed up, and I don't know how to fix them.
So far I tried to reimport the models and edit the textures, ...
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
0
answers
10
views
I cannot build my flutter/unity app: Undefined Symbol CardboardUnity, linker command failed
As I said I cannot build my flutter app with Unity Framework.
These are some logs when build fails:
Error (Xcode): Undefined symbol: _CardboardUnity_setDeviceParametersChanged
Error (Xcode): Undefined ...
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 ...
-1
votes
1
answer
32
views
Get the dimensions of a unit of 3D Models
I'm working on an AR Project using Unity3D. In Unity 1 unit equates to 1m in real life. So a cube that'ss 1,1,1 is exactly 1m², in my AR application.
Now if I import 3D models from various sources, ...
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 ...
1
vote
0
answers
27
views
Calculate node value based on its surrounding cells [closed]
I have a 2D float array of width * height elements and I want to generate a mesh using it as a heightmap. The texture I've generated from the array was also width * height, so the mesh should have (...
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 ...
0
votes
0
answers
13
views
Forward and Backward movement Visual Scripting not working together
I have an issue while working with visual scripts, I'm learning it and new to it so when I created the forward and backward movement in the visual scripts it is working separately but not together as ...
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 ...
1
vote
1
answer
37
views
Having trouble centering a Gizmo in Unity's editor with an Isometric Grid where Z axis serves as Y axis
I'm trying to make the boxes in OnDrawGizmos() center isometrically within each tile. As you can see, I want to know the coordinates of each tile and always have them displayed in the editor. As you ...