77,004 questions
0
votes
0
answers
12
views
Images not appearing on a scrollable container
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
0
replies
31
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.
...
0
votes
0
answers
45
views
Need help making enemies look at the character or attack point [closed]
I am making a movement script for enemies and want their to be two targets. One being the attack point and the other being the player. Ive made working movement where the enemy switches from the ...
Advice
0
votes
0
replies
45
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 ...
0
votes
1
answer
38
views
My Unity project cannot see a trigger event [closed]
This seems to be a common problem. What are the typical issues?
private void OnTriggerEnter(Collider other) {
print("Trigger door about to invoke\n");
OnTriggerEnterEvent.Invoke();
...
1
vote
1
answer
64
views
Saving Movement Data as a CSV File in VR Headset (C#/Unity)
I'm working on a project where I want to collect movement data (X/Y/Z position and rotation) from a VR headset (a PICO Neo 3 Pro Eye) using a C#/Unity script, and export it as a CSV.
I have a script ...
0
votes
0
answers
61
views
OnMouseDown() not working — object not destroyed on click [duplicate]
I created a square GameObject named "Target" and added a Box Collider 2D component.
Then I wrote the following C# script:
using UnityEngine;
public class ClickToDestroy : MonoBehaviour
{
...
0
votes
1
answer
93
views
I can't figure out why the enemies are spawning outside the rooms
I've been trying to fix this issue with my code for a while now but I can't seem to figure it out. For some reason, the enemies can still spawn outside of rooms, but they won't ever spawn outside of ...
-3
votes
0
answers
61
views
Terrain normal map issue [closed]
I'm making a game in Unity 6. When I add normal map texture to a terrain layer, the entire terrain turns dark. I made my material with a substance sampler. When I use my materials on a plane or other ...
0
votes
0
answers
48
views
Unity 6, Using dynamic dropdowns and inputs in text [closed]
In Unity, I'll retrieve the value from the database (written in PHP, data coming from the service), and there's no problem.
My problem is that my text data contains the [DropDown] or [DragDrop] tag, ...
-2
votes
0
answers
62
views
How to not instantly move the player if the player isn't facing the same direction as the movement input? [closed]
So I want the character to not instantly move if the input vector isn't the same as the facingDirection vector. Instead I want the character to just change its facing direction in accordance with the ...
-2
votes
0
answers
76
views
"Ambiguity between (variable) & (variable) [closed]
I am trying to make a first person movement script in unity and it was working fine, I was creating some terrain when out of nowhere without me touching this script, this error appeared.
when I hover ...
0
votes
0
answers
79
views
I need help fixing this crouching bug
I'm currently struggling to understand why the crouch mechanic isn't working all that well in unity. I would be grateful to anyone who can help me understand why this code doesn't work and how can I ...
2
votes
0
answers
59
views
Tracking a button works once, but when I click it a second time, nothing happens
In Unity, I have an idea for a simple game where, if a child object collides with an object tagged "wall" and presses the W button, the parent object moves towards the collided object. ...
2
votes
0
answers
40
views
FMOD Error in Build: "Cannot create FMOD::Sound instance" - AudioClips Fail to Load (Works perfect in Editor)
I’m currently developing a Full Motion Video (FMV) game which, by its nature, contains a very large number of video and audio clips. I’ve encountered a critical issue that only appears in the built ...