76,989 questions
-5
votes
0
answers
35
views
Bad quality in unity game tab [closed]
So I'm trying to render a picture of a bomb in unity. On the scene tab it looks like it's supposed to, but when i run the game/open the game tab it looks ugly and pixelated.
scene tab
Game tab
I tried ...
0
votes
0
answers
51
views
VS Code doesn't Recognize Unity Classes
For two days now, I've been having a rather strange problem.
The MonoBehaviour class isn't recognized by VS Code, with the following error:
Error while loading [...]: Exception thrown: System....
0
votes
0
answers
52
views
Mobile game Test version is not visible on any android device. ( Unity- Android)
I recently started working on a Unity mobile game (Android). I upload my builds to Google Play Console for testing and share the test link with my testers. They can install the app from the Play Store ...
-7
votes
0
answers
74
views
I can't move while jumping in Unity [closed]
using UnityEngine;
public class PlayerLocomotion : MonoBehaviour
{
PlayerManager playerManager;
AnimatorManager animatorManager;
InputManager inputManager;
Vector3 ...
-3
votes
0
answers
74
views
How to avoid bullets shooting off-center when aiming through a sniper scope camera? [closed]
How do you handle this typically?
My Main Camera is in default position at my players head. My SniperScope Camera is positioned either at the end of the scope lens or at the guns muzzle, which I got ...
Advice
0
votes
2
replies
44
views
Better AI Behaviour
I am currently working on AI Behaviour in a Beat-Em-Up game in Unity for my beat-em-up project, I am currently using my own statemachine system (with states that don't inherit from monobehaviour) to ...
-1
votes
0
answers
25
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
Advice
1
vote
1
replies
48
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 (...
-1
votes
1
answer
36
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
50
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 ...
0
votes
0
answers
39
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....
Advice
1
vote
0
replies
71
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
0
answers
63
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
96
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
68
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 ...
2
votes
1
answer
71
views
Assembly-CSharp not loading when I open my Unity scripts written with C# in Visual Studio 2022
When I open my Unity scripts in Visual Studio 2022, I am greeted with this error:
I tried deleting all .csproj files before opening in VS and also tried reinstalling VS and Unity. The file being ...
0
votes
0
answers
39
views
iOS Widget Extension Provisioning Issue with Unity Cloud Build
I have a Unity package that creates a iOS widget extension with its own Bundle Identifier. Everything builds and runs correctly when I build locally from Xcode, but when I try to build using Unity ...
0
votes
0
answers
113
views
How do I construct an Il2Cpp string?
Using Il2CppDumper, I have dumped my files and am perusing the methods and their arguments using dnSpy. Some methods take string arguments like this one:
[Token(Token = "0x6000338")]
[...
0
votes
0
answers
34
views
Android project using untiy-classes.jar (generated by Unity) with some classes that can't be resolved
I work on a small android project that uses the unity-clases.jar generated by Unity. Some (not all) of the files/classes in the .jar can't be resolved when compiling the android project and I don't ...
0
votes
1
answer
99
views
Make a floating point origin in unity
I created this code in Unity to only move the object in my scene if the threshold is exceeded, but it does not set my tracking object, and continues to snap to it. My tracking object was a rigid body ...
0
votes
1
answer
75
views
VLC for unity trial version, the type or namespace name 'LibVLC' could not be found
I'm trying to test the free trial version of VLC for Unity, the package was downloaded here https://videolabs.io/store/unity/
I imported the downloaded "vlc-unity-trial-v6.unitypackage" in ...
1
vote
0
answers
48
views
Cinemachine follow camera stuttering if the target object to follow rigidbody gravity is disabled. how to make the camera follow smooth?
when using gravity, it's working fine the camera is following smooth.
when gravity is disabled, the camera is stuttering. and i tried in the Rigidbody to set the Interpolate property to Interpolate ...
0
votes
1
answer
50
views
Can't use DOTS in unity 6.2
I wanted to study using ECS for a new project. But after I imported them using the git urls provided by the official site, i ran into some error messages:
here are the packages i have:
I have ...
1
vote
1
answer
89
views
How to freeze a player so that he does not move to one side
How can I make it so that the player cannot move, even through physics, in one direction?
I tried this option:
using UnityEngine;
using UnityEngine.InputSystem;
public class Player: MonoBehaviour
{
...
0
votes
0
answers
43
views
How to show GBK encoded header in Mac version Unity editor properly?
I work on my project on both Mac and Windows. Some editor headers were written in Visual Studio on Windows in Chinese, and were encoded in GBK(default I guess). However they don't show properly on mac ...