76,996 questions
-2
votes
0
answers
19
views
Script on a parent gameobject being triggered by a trigger attached to a child gameobject [closed]
So my issue is that I have a parent gameobject with an OnTriggerEnter script, and said script is being triggered when entering a trigger that a child gameobject has. The child gameobject has no ...
0
votes
0
answers
32
views
I have an issue with input action assets
Basically I'm trying to write a simple player movement script using input action assets. However, once I press one of the buttons (WASD) and hold it down, the player moves in the correct direction, ...
0
votes
0
answers
21
views
Unity 6 - Android - HTTPListener
I am trying to create an HTTP listener in my game application to be run on Android.
I have created this script that receives API requests from the network and do some stuff in the game.
using ...
Advice
1
vote
1
replies
37
views
Looking for a better way to handle animation trigger calling in Unity using a Blend Tree and object instantiation
I'm fiddling around with a 2D side-scroll game using C# in Unity. Basically, I have a method that gets called when I hit an animation trigger on the animator and that method instantiates a GameObject (...
-2
votes
0
answers
28
views
Running unityhub in Fedora WSL2 [closed]
I'm trying to develop a game with Unity. I installed unityhub in my wsl2 Fedora installation following these instructions from the Unity documentation for installing in Redhat.
But when I launch ...
-1
votes
0
answers
37
views
Unity Prefab Type Mismatch
I have tried for days to troubleshoot but only met with persisting Type Mismatch.
I am working on a flappy bird game and i wanted to make the pipes go faster as the score increases so i made a [...
-1
votes
1
answer
32
views
Unity UWP build: “A scripted object probably BlankScene has a different serialization layout” when using [SerializeField]
I'm encountering a serialization error when building a Unity project for UWP and running it in Visual Studio:
A scripted object probably BlankScene has a different serialization layout when loading (...
0
votes
0
answers
68
views
Counteracting recoil without moving return vector
I've implemented basic FPS recoil (code shown below) and currently, the player can counteract the recoil climb by pulling the mouse down, but when the recoil returns to zero, the player view is at a ...
0
votes
0
answers
44
views
How to make a player stick to a planet while moving?
I actually make a game about a space explorer but i've enconter a problem. When my player hit the ground (or when he spawn on the surface) he slide on the back of the planet. How can i actually make ...
1
vote
0
answers
45
views
Displaying a coordinate grid and markers on the globe in Unity
Please help me with the Earth model in Unity. I don't understand what's wrong.
I downloaded the blue marble texture from the NASA website, attached it to a Material, and placed it on a sphere.
I want ...
0
votes
0
answers
34
views
Vuforia 11.3.4 error — ARTrackablesChangedEventArgs not found when using AR Foundation 5.2.0 (Unity 2022.3)
I’m working on an AR project in Unity 2022.3 using Vuforia Engine 11.3.4 and AR Foundation 5.2.0.
When I try to build or play in the editor, I get the following compile error:
Library\PackageCache\com....
-3
votes
0
answers
59
views
Grayscale with colors [closed]
I'm new to unity and I want to make a shader that will make the colored world black and white (in shades of gray), preferably by lowering the saturation to 0, but I also want to introduce 2 colors ...
1
vote
0
answers
39
views
Images not appearing on a scrollable container [closed]
I have a PlayeHUD, where I want to add a container with a fixed size for "Relics", and to allow horizontal scrolling when there are too many Relics. But the relics, that are inside my ...
Best practices
0
votes
4
replies
100
views
How to properly implement target requirements in game?
I'm a self-taught beginner learning through trial and error. I'm working on a card game in Unity (C#), and I'm trying to design a clean and extensible system for validating targets during gameplay.
...
Advice
1
vote
0
replies
66
views
Text-to-Speech function in a 3D Unity game
I am doing a 3D game using a Unity, and I need my NPC can communicate with the players with voice
I want my NPC can speak with a voice that response is generated by the LLM, so the response will ...