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
76,934
questions
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
9
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'...
0
votes
0
answers
13
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
11
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
0
answers
8
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
32
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 ...